[SVN r1505]
This commit is contained in:
Jaakko Järvi
2003-09-05 18:24:24 +00:00
parent 4d47b983aa
commit 60ae05a250

View File

@@ -15,6 +15,7 @@
#include <boost/type_traits/is_arithmetic.hpp>
using boost::enable_if;
using boost::disable_if;
using boost::is_arithmetic;
template <int N> struct dummy {
@@ -26,7 +27,7 @@ typename enable_if<is_arithmetic<T>, bool>::type
arithmetic_object(T t, dummy<0> = 0) { return true; }
template<class T>
typename enable_if<!is_arithmetic<T>, bool>::type
typename disable_if<is_arithmetic<T>, bool>::type
arithmetic_object(T t, dummy<1> = 0) { return false; }