Array of objects without explicit constructors
I have a class:
1 2 3 4 5 6 7
|
class myClass {
double x=0;
double y =0;
public:
std::vector<double> xpoint1, xpoint2, ypoint1, ypoint2;
void foo(const std::vector<double> & px1, const std::vector<double> & px2, const std::vector<double> & py1, const std::vector<double> & py2);
...//other stuff
|
I have not defined any constructors or destructors.
I also have the array:
Given the definition above, is it legal to immediately do operations like
my_arr[1][90].xpoint1 = v;
where v1 is some vector<double> ?
I replied to your other post.
Topic archived. No new replies allowed.