25 Jan
2011
25 Jan
'11
6:38 p.m.
On 2011-01-25 18:02:33 +0100, Igor R said:
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);
Thanks at all, but I think that's the best solution with is_integral Phil