is_auto_ptr.hpp 663 B

123456789101112131415161718192021222324252627282930
  1. // Copyright David Abrahams 2003.
  2. // Distributed under the Boost Software License, Version 1.0. (See
  3. // accompanying file LICENSE_1_0.txt or copy at
  4. // http://www.boost.org/LICENSE_1_0.txt)
  5. #ifndef IS_AUTO_PTR_DWA2003224_HPP
  6. # define IS_AUTO_PTR_DWA2003224_HPP
  7. # ifndef BOOST_NO_AUTO_PTR
  8. # include <boost/python/detail/is_xxx.hpp>
  9. # include <memory>
  10. # endif
  11. namespace boost { namespace python { namespace detail {
  12. # if !defined(BOOST_NO_AUTO_PTR)
  13. BOOST_PYTHON_IS_XXX_DEF(auto_ptr, std::auto_ptr, 1)
  14. # else
  15. template <class T>
  16. struct is_auto_ptr : mpl::false_
  17. {
  18. };
  19. # endif
  20. }}} // namespace boost::python::detail
  21. #endif // IS_AUTO_PTR_DWA2003224_HPP