2 Jul
2010
2 Jul
'10
3:57 p.m.
I need to make sure that a given template class is only instantiated with integer types, and another one only with the likes of float or double.
I have played with boost::concept_check and was wondering, why it is possible to say
You could also use the type_traits is_integral and is_floating_point in conjunction with either enable_if or a static assert. HTH, John.