How to determine constness at compile time?

Steven Schveighoffer schveiguy at yahoo.com
Tue Nov 27 09:37:46 PST 2007


"Janice Caron" wrote
> That is genius! Sheer genius! Thank you.
>
*blushes* :)

> 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!

I think it has something to do with the alias Y statement, because now 
constID is not the only member of the template.  I know you said this worked 
for you in the past, but maybe it was just luck that it worked :)

-Steve 





More information about the Digitalmars-d mailing list