E
Elzbieta Burnett
I have:
struct point
{
double alpha, beta;
double Force;
point( double a, double b, double f ) : alpha(a), beta(b), Force(f)
{}
};
struct data
{
int dof;
int XYZ;
double X, Y, Z;
int node;
vector<point> pt;
};
map<int, data> AeroDOF;
I my initialization code I had:
AeroDOF[ dof[j] ].pt.push_back( point( alpha, beta,
Force[j] ) );
I thought that vector '[]' would create an instance of 'point' (like
map '[]'), call copy constructor and assign newly created entry to
point( alpha, beta, Force[j] ) in AeroDOF.pt.
Evidently this isn't true?
<Ella>
struct point
{
double alpha, beta;
double Force;
point( double a, double b, double f ) : alpha(a), beta(b), Force(f)
{}
};
struct data
{
int dof;
int XYZ;
double X, Y, Z;
int node;
vector<point> pt;
};
map<int, data> AeroDOF;
I my initialization code I had:
AeroDOF[ dof[j] ].pt.push_back( point( alpha, beta,
Force[j] ) );
I thought that vector '[]' would create an instance of 'point' (like
map '[]'), call copy constructor and assign newly created entry to
point( alpha, beta, Force[j] ) in AeroDOF.pt.
Evidently this isn't true?
<Ella>