Defining assignment operator on a managed C++ class?
.NET (Core and Framework)
1
Posts
1
Posters
0
Views
1
Watching
-
Is there a way to define an assignment operator on a managed C++ class? I tried using the C# syntax, but that doesn't seem to want to work... What I've got (that isn't working) is something like this: public __gc class ATTRIB { ATTRIB(); ATTRIB(const ATTRIB* a); virtual ~ATTRIB(); static implicit operator ATTRIB(ATTRIB* a) { return new ATTRIB(a); } }