Hello,
is there a standard way to copy an object for which one or more fields are fixed length arrays?
The object looks like
myStuff.hpp
1 2 3 4 5 6 7 8 9
|
#define LMAX 101
class myStuff{
private:
double someDouble[LMAX];
double someOtherDouble[LMAX];
int actualSize;
public:
myStuff();
myStuff& operator= (const myStuff& lhs);
|
myStuff.cpp
1 2 3 4 5
|
// ... some code here ...
myStuff& operator= (const myStuff& lhs){
// <- what should I put here ???
}
// ... some other code here ...
|
any tip (included tutorials/standards)?
Last edited on
thanks, that was indeed useful