diff options
Diffstat (limited to 'boost/python/detail/is_shared_ptr.hpp')
-rwxr-xr-x | boost/python/detail/is_shared_ptr.hpp | 18 |
1 files changed, 12 insertions, 6 deletions
diff --git a/boost/python/detail/is_shared_ptr.hpp b/boost/python/detail/is_shared_ptr.hpp index 547af3f1cb..bef0e05afb 100755 --- a/boost/python/detail/is_shared_ptr.hpp +++ b/boost/python/detail/is_shared_ptr.hpp @@ -1,17 +1,23 @@ // Copyright David Abrahams 2003. +// Copyright Stefan Seefeld 2016. // Distributed under the Boost Software License, Version 1.0. (See // accompanying file LICENSE_1_0.txt or copy at // http://www.boost.org/LICENSE_1_0.txt) -#ifndef IS_SHARED_PTR_DWA2003224_HPP -# define IS_SHARED_PTR_DWA2003224_HPP -# include <boost/python/detail/is_xxx.hpp> -# include <boost/shared_ptr.hpp> +#ifndef boost_python_detail_is_shared_ptr_hpp_ +#define boost_python_detail_is_shared_ptr_hpp_ + +#include <boost/python/detail/is_xxx.hpp> +#include <boost/shared_ptr.hpp> namespace boost { namespace python { namespace detail { BOOST_PYTHON_IS_XXX_DEF(shared_ptr, shared_ptr, 1) - +#if __cplusplus >= 201103L +template <typename T> +struct is_shared_ptr<std::shared_ptr<T> > : std::true_type {}; +#endif + }}} // namespace boost::python::detail -#endif // IS_SHARED_PTR_DWA2003224_HPP +#endif |