C++0x Concepts - Dead?

aarti_pl aarti at interia.pl
Thu Jul 16 16:40:20 PDT 2009


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)


More information about the Digitalmars-d-announce mailing list