This one has stumped me a bit....
I have the following bit of code :
that produces this error message :Code:typedef struct sField { short x, y, length; short type; union data { short selection; std::string line; } };
Am I correct in assuming that a union member cannot contain a class object that has a defined copy constructor?Code:member 'sField::data::line' of union 'sField::data' has copy constructor
If so, is there any way around this without using C-style strings? I would really like to use a std::string here as it would make the implementation a lot easier.