error with static assert and floating-point detection

Hello, I try to use Boost Static Assert to define a template parameter only for double & floats. I use the call BOOST_STATIC_ASSERT( !boost::is_integral<T>::value ) I get in a class the error: error: no member named 'is_integral' in namespace 'boost' BOOST_STATIC_ASSERT( !boost::is_integral<T>::value ) My question is, how can I check the template parameter so that only floating-point types are allowed? How can I avoid the error? Thanks Phil

I try to use Boost Static Assert to define a template parameter only for double & floats. I use the call BOOST_STATIC_ASSERT( !boost::is_integral<T>::value )
I get in a class the error: error: no member named 'is_integral' in namespace 'boost' BOOST_STATIC_ASSERT( !boost::is_integral<T>::value )
My question is, how can I check the template parameter so that only floating-point types are allowed? How can I avoid the error?
Did you
#include
participants (2)
-
John Maddock
-
Philipp Kraus