1 #ifndef BOOST_SMART_PTR_DETAIL_SP_TYPEINFO_HPP_INCLUDED
2 #define BOOST_SMART_PTR_DETAIL_SP_TYPEINFO_HPP_INCLUDED
4 // MS compatible compilers support #pragma once
6 #if defined(_MSC_VER) && (_MSC_VER >= 1020)
10 // smart_ptr/detail/sp_typeinfo_.hpp
12 // Copyright 2007, 2019 Peter Dimov
14 // Distributed under the Boost Software License, Version 1.0.
15 // See accompanying file LICENSE_1_0.txt or copy at
16 // http://www.boost.org/LICENSE_1_0.txt)
18 #include <boost/config.hpp>
20 #if defined( BOOST_NO_TYPEID ) || defined( BOOST_NO_STD_TYPEINFO )
22 #include <boost/core/typeinfo.hpp>
30 typedef boost::core::typeinfo sp_typeinfo_;
36 #define BOOST_SP_TYPEID_(T) BOOST_CORE_TYPEID(T)
38 #else // defined( BOOST_NO_TYPEID ) || defined( BOOST_NO_STD_TYPEINFO )
48 typedef std::type_info sp_typeinfo_;
54 #define BOOST_SP_TYPEID_(T) typeid(T)
56 #endif // defined( BOOST_NO_TYPEID ) || defined( BOOST_NO_STD_TYPEINFO )
58 #endif // #ifndef BOOST_SMART_PTR_DETAIL_SP_TYPEINFO_HPP_INCLUDED