I'm converting another project from Managed Extensions for C++ (.Net 1.1) to C++/CLI (.Net 2+)
In this project we have some copy constructors.
I have my copy constructor declared as
Shift(const Shift^ &otherShift);
The code that used to call it is:
return gcnew Shift(*this);
But this raises the compile error C3073: 'MyNamespace::Shift' : ref class does not have a user-defined copy constructor.
I've tried (&this), (this), (%this) -- all with varying errors.
So ... how do I call this copy constructor?