forked from boostorg/integer
Remove dependency to mpl and type_traits.
This commit is contained in:
@ -22,8 +22,11 @@
|
|||||||
#include <climits> // for CHAR_MIN
|
#include <climits> // for CHAR_MIN
|
||||||
#include <boost/detail/workaround.hpp>
|
#include <boost/detail/workaround.hpp>
|
||||||
|
|
||||||
#ifndef BOOST_NO_CXX11_NOEXCEPT
|
#if !defined(BOOST_NO_CXX11_NOEXCEPT) && !defined(BOOST_NO_CXX11_HDR_TYPE_TRAITS)
|
||||||
#include <boost/type_traits/is_arithmetic.hpp>
|
# include <type_traits>
|
||||||
|
# define BOOST_INT_NOEXCEPT(T) BOOST_NOEXCEPT_IF(std::is_arithmetic<T>::value)
|
||||||
|
#else
|
||||||
|
# define BOOST_INT_NOEXCEPT(T)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef BOOST_MSVC
|
#ifdef BOOST_MSVC
|
||||||
@ -36,8 +39,6 @@ namespace boost
|
|||||||
namespace integer
|
namespace integer
|
||||||
{
|
{
|
||||||
|
|
||||||
#define BOOST_INT_NOEXCEPT(T) BOOST_NOEXCEPT_IF(boost::is_arithmetic<T>::value)
|
|
||||||
|
|
||||||
// Forward declarations for function templates -----------------------------//
|
// Forward declarations for function templates -----------------------------//
|
||||||
|
|
||||||
template < typename IntegerType >
|
template < typename IntegerType >
|
||||||
|
Reference in New Issue
Block a user