2
0
mirror of https://github.com/boostorg/python.git synced 2026-01-24 06:02:14 +00:00

Use std type_traits instead of boost type_traits

Fixes https://github.com/boostorg/python/issues/106
This commit is contained in:
shreyans800755
2017-06-25 02:03:58 +05:30
committed by Stefan Seefeld
parent d6554d6c65
commit 142661dac8
68 changed files with 324 additions and 275 deletions

View File

@@ -7,7 +7,7 @@
#include <boost/python/module.hpp>
#include <boost/python/class.hpp>
#if BOOST_WORKAROUND(__MWERKS__, <= 0x2407)
# include <boost/type_traits/is_enum.hpp>
#include <boost/python/detail/type_traits.hpp>
# include <boost/mpl/bool.hpp>
#endif
using namespace boost::python;
@@ -17,7 +17,7 @@ enum color { red = 1, green = 2, blue = 4, blood = 1 };
#if BOOST_WORKAROUND(__MWERKS__, <= 0x2407)
namespace boost // Pro7 has a hard time detecting enums
{
template <> struct is_enum<color> : boost::mpl::true_ {};
template <> struct boost::python::detail::is_enum<color> : boost::mpl::true_ {};
}
#endif