is_auto_ptr.hpp 702 B

123456789101112131415161718192021222324252627282930313233
  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. # else
  11. # include <boost/mpl/bool.hpp>
  12. # endif
  13. namespace boost { namespace python { namespace detail {
  14. # if !defined(BOOST_NO_AUTO_PTR)
  15. BOOST_PYTHON_IS_XXX_DEF(auto_ptr, std::auto_ptr, 1)
  16. # else
  17. template <class T>
  18. struct is_auto_ptr : mpl::false_
  19. {
  20. };
  21. # endif
  22. }}} // namespace boost::python::detail
  23. #endif // IS_AUTO_PTR_DWA2003224_HPP