boost::is_arithmetic -> std::is_arithmetic

This commit is contained in:
Sébastien Loriot 2023-04-23 21:29:36 +02:00
parent 5726a0a255
commit 32340e6401
2 changed files with 2 additions and 3 deletions

View File

@ -88,7 +88,7 @@ struct Has_type_different_from <T, No, true>
}
};
template <class NT> struct has_cheap_constructor : boost::is_arithmetic<NT>{};
template <class NT> struct has_cheap_constructor : std::is_arithmetic<NT>{};
template <bool p> struct has_cheap_constructor<Interval_nt<p> > {
enum { value=true };
};

View File

@ -18,7 +18,6 @@
#include <CGAL/boost/iterator/transform_iterator.hpp> // for Root_of functor
#include <boost/operators.hpp>
#include <boost/type_traits/is_arithmetic.hpp>
#include <boost/mpl/if.hpp>
#include <boost/mpl/logical.hpp>
@ -383,7 +382,7 @@ public :
// Also check that ET and AT are constructible from T?
template<class T>
Lazy_exact_nt (T i, std::enable_if_t<boost::mpl::and_<
boost::mpl::or_<boost::is_arithmetic<T>, std::is_enum<T> >,
boost::mpl::or_<std::is_arithmetic<T>, std::is_enum<T> >,
boost::mpl::not_<std::is_same<T,ET> > >::value,void*> = 0)
: Base(new Lazy_exact_Cst<ET,T>(i)) {}