Logical const

bearophile bearophileHUGS at lycos.com
Sun Nov 28 19:15:48 PST 2010


Rainer Deyke:

> In C++, const is transitive for direct members.  It is only intransitive
> for pointer/references,

Right, I have forgotten to specify that.


> and even these can be made transitive through
> the use of a transitive-const smart pointer class.

I didn't know this. But of course you can do all you want in C++ :-)

Bye and thank you,
bearophile


More information about the Digitalmars-d mailing list