25 Jan
2011
25 Jan
'11
5:02 p.m.
I have written a template class and I would like tot "assert the type". My class should only use floating point types like double or float. Can I do this check with BOOST_STATIC_ASSERT or anything else? The class need not to use a "countable type" (math: in N).
BOOST_STATIC_ASSERT(!boost::is_integral<T>::value);