Dealing with property function and operator overloads
Andrej Mitrovic
andrej.mitrovich at gmail.com
Mon Oct 3 12:08:29 PDT 2011
Forgot to add an opAssign in Wrapped as well:
void opAssign(T)(T rhs)
{
payload = rhs;
dg();
}
That takes care of assigning and ops that change the object's state.
More information about the Digitalmars-d-learn
mailing list