I am trying to write a template with a name Unconstthat will turn something like const(int)into int; in other words
Unconst!(const(int))
should give
int
I can’t understand how, though ... any creative ideas for creating this work?
(Extension: it would be great if this method could be extended to work with sharedother type constructors.)
source
share