Skip to content

Commit b9d0d97

Browse files
committed
Fix MSVC compilation failure.
1 parent ebba009 commit b9d0d97

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

include/boost/python/detail/type_traits.hpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@
77
# define BOOST_PYTHON_DETAIL_TYPE_TRAITS_HPP
88

99

10-
#if __cplusplus < 201103L && (!defined(BOOST_MSVC) || BOOST_MSVC<=1600)
11-
#define BOOST_PYTHON_USE_BOOST_TYPES
10+
#include <boost/config.hpp>
11+
#ifdef BOOST_NO_CXX11_HDR_TYPE_TRAITS
1212
# include <boost/type_traits/transform_traits.hpp>
1313
# include <boost/type_traits/same_traits.hpp>
1414
# include <boost/type_traits/cv_traits.hpp>
@@ -35,7 +35,7 @@
3535

3636
namespace boost { namespace python { namespace detail {
3737

38-
#if defined(BOOST_PYTHON_USE_BOOST_TYPES)
38+
#ifdef BOOST_NO_CXX11_HDR_TYPE_TRAITS
3939
using boost::alignment_of;
4040
using boost::add_const;
4141
using boost::add_cv;
@@ -99,8 +99,8 @@ namespace boost { namespace python { namespace detail {
9999
using std::remove_cv;
100100
using std::remove_const;
101101

102-
using true_ = std::integral_constant<bool, true>;
103-
using false_ = std::integral_constant<bool, false>;
102+
typedef std::integral_constant<bool, true> true_;
103+
typedef std::integral_constant<bool, false> false_;
104104
#endif
105105
using boost::is_base_and_derived;
106106
using boost::type_with_alignment;

0 commit comments

Comments
 (0)