How to determine constness at compile time?

Janice Caron caron800 at googlemail.com
Tue Nov 27 07:57:56 PST 2007


That is genius! Sheer genius! Thank you.

I did ponder for a while why constID!() invoked realConstID!(),
instead of doing it in a single template. So I did the experiment and
found it wouldn't compile if you did it in a single template. I don't
know why though!

Anyway, cheers!



More information about the Digitalmars-d mailing list