Possible way to achieve lazy loading with const objects
Christophe
travert at phare.normalesup.org
Thu Sep 29 08:09:13 PDT 2011
"Steven Schveighoffer" , dans le message (digitalmars.D:145738), a
>> It is always possible for a non-const version of opEqual to forward to
>> the const version, so people willing to use a const version do not have
>> to define a non-const version.
>
> Again, you still need to define both, this is not a good situation.
No, I didn't express myself correctly. The non-const version should
forward to the const version *by default*.
More information about the Digitalmars-d
mailing list