Jonathan M Davis:

> LOL. After using templates in D enough, C++ almost feelings like it doesn't 
> have 
> them (particularly since it lacks static ifs and template constraints).

enable_if works in C++:
http://www.boost.org/doc/libs/1_44_0/libs/utility/enable_if.html
See also:
http://www.boost.org/doc/libs/1_44_0/libs/concept_check/concept_check.htm

Bye,
bearophile

Reply via email to