2
0
mirror of https://github.com/boostorg/python.git synced 2026-01-31 20:32:16 +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

@@ -3,7 +3,7 @@
// accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt)
#include <boost/python/pointee.hpp>
#include <boost/type_traits/same_traits.hpp>
#include <boost/python/detail/type_traits.hpp>
#include <memory>
#include <boost/shared_ptr.hpp>
#include <boost/static_assert.hpp>
@@ -13,19 +13,19 @@ struct A;
int main()
{
BOOST_STATIC_ASSERT(
(boost::is_same<
(boost::python::detail::is_same<
boost::python::pointee<std::auto_ptr<char**> >::type
, char**
>::value));
BOOST_STATIC_ASSERT(
(boost::is_same<
(boost::python::detail::is_same<
boost::python::pointee<boost::shared_ptr<A> >::type
, A>::value));
#ifndef BOOST_NO_TEMPLATE_PARTIAL_SPECIALIZATION
BOOST_STATIC_ASSERT(
(boost::is_same<
(boost::python::detail::is_same<
boost::python::pointee<char*>::type
, char
>::value));