BCS pisze:
Reply to Aarti_pl,

template(T if typeof(T.init + T.init) == T)

who ever said T + T == T? What if that is not needed?

That is the only way to do it in D1 AFAIK. In D2 you have __traits(compile, ).

But before you get into discussion, please read my point made to Walter: possibility to get such a functionality is not and SHOULD NOT be connected with template instantiations, but rather with proper compile time reflection.

BR
Marcin Kuszczak
(aarti_pl)

Reply via email to