mirror of
https://github.com/boostorg/core.git
synced 2025-07-30 04:47:24 +02:00
Remove test dependency on mpl/not.hpp.
This commit is contained in:
@ -10,16 +10,19 @@
|
|||||||
// Jeremiah Willcock (jewillco at osl.iu.edu)
|
// Jeremiah Willcock (jewillco at osl.iu.edu)
|
||||||
// Andrew Lumsdaine (lums at osl.iu.edu)
|
// Andrew Lumsdaine (lums at osl.iu.edu)
|
||||||
|
|
||||||
#include <boost/mpl/not.hpp>
|
#include <boost/config.hpp>
|
||||||
|
|
||||||
#include <boost/utility/enable_if.hpp>
|
#include <boost/utility/enable_if.hpp>
|
||||||
#include <boost/type_traits/is_arithmetic.hpp>
|
#include <boost/type_traits/is_arithmetic.hpp>
|
||||||
#include <boost/detail/lightweight_test.hpp>
|
#include <boost/detail/lightweight_test.hpp>
|
||||||
|
|
||||||
using boost::enable_if;
|
using boost::enable_if;
|
||||||
using boost::mpl::not_;
|
|
||||||
using boost::is_arithmetic;
|
using boost::is_arithmetic;
|
||||||
|
|
||||||
|
template<class T> struct not_
|
||||||
|
{
|
||||||
|
BOOST_STATIC_CONSTANT( bool, value = !T::value );
|
||||||
|
};
|
||||||
|
|
||||||
namespace A {
|
namespace A {
|
||||||
template<class T>
|
template<class T>
|
||||||
typename enable_if<is_arithmetic<T>, bool>::type
|
typename enable_if<is_arithmetic<T>, bool>::type
|
||||||
|
@ -10,16 +10,19 @@
|
|||||||
// Jeremiah Willcock (jewillco at osl.iu.edu)
|
// Jeremiah Willcock (jewillco at osl.iu.edu)
|
||||||
// Andrew Lumsdaine (lums at osl.iu.edu)
|
// Andrew Lumsdaine (lums at osl.iu.edu)
|
||||||
|
|
||||||
#include <boost/mpl/not.hpp>
|
#include <boost/config.hpp>
|
||||||
|
|
||||||
#include <boost/utility/enable_if.hpp>
|
#include <boost/utility/enable_if.hpp>
|
||||||
#include <boost/type_traits/is_arithmetic.hpp>
|
#include <boost/type_traits/is_arithmetic.hpp>
|
||||||
#include <boost/detail/lightweight_test.hpp>
|
#include <boost/detail/lightweight_test.hpp>
|
||||||
|
|
||||||
using boost::mpl::not_;
|
|
||||||
using boost::enable_if;
|
using boost::enable_if;
|
||||||
using boost::is_arithmetic;
|
using boost::is_arithmetic;
|
||||||
|
|
||||||
|
template<class T> struct not_
|
||||||
|
{
|
||||||
|
BOOST_STATIC_CONSTANT( bool, value = !T::value );
|
||||||
|
};
|
||||||
|
|
||||||
template<class T>
|
template<class T>
|
||||||
typename enable_if<is_arithmetic<T>, bool>::type
|
typename enable_if<is_arithmetic<T>, bool>::type
|
||||||
arithmetic_object(T t) { return true; }
|
arithmetic_object(T t) { return true; }
|
||||||
|
Reference in New Issue
Block a user