is_shared_ptr.hpp 683 B

1234567891011121314151617181920212223
  1. // Copyright David Abrahams 2003.
  2. // Copyright Stefan Seefeld 2016.
  3. // Distributed under the Boost Software License, Version 1.0. (See
  4. // accompanying file LICENSE_1_0.txt or copy at
  5. // http://www.boost.org/LICENSE_1_0.txt)
  6. #ifndef boost_python_detail_is_shared_ptr_hpp_
  7. #define boost_python_detail_is_shared_ptr_hpp_
  8. #include <boost/python/detail/is_xxx.hpp>
  9. #include <boost/shared_ptr.hpp>
  10. namespace boost { namespace python { namespace detail {
  11. BOOST_PYTHON_IS_XXX_DEF(shared_ptr, shared_ptr, 1)
  12. #if !defined(BOOST_NO_CXX11_SMART_PTR)
  13. template <typename T>
  14. struct is_shared_ptr<std::shared_ptr<T> > : std::true_type {};
  15. #endif
  16. }}} // namespace boost::python::detail
  17. #endif