]> git.lyx.org Git - lyx.git/blob - 3rdparty/boost/boost/smart_ptr/detail/sp_typeinfo_.hpp
Update to boost 1.72
[lyx.git] / 3rdparty / boost / boost / smart_ptr / detail / sp_typeinfo_.hpp
1 #ifndef BOOST_SMART_PTR_DETAIL_SP_TYPEINFO_HPP_INCLUDED
2 #define BOOST_SMART_PTR_DETAIL_SP_TYPEINFO_HPP_INCLUDED
3
4 // MS compatible compilers support #pragma once
5
6 #if defined(_MSC_VER) && (_MSC_VER >= 1020)
7 # pragma once
8 #endif
9
10 //  smart_ptr/detail/sp_typeinfo_.hpp
11 //
12 //  Copyright 2007, 2019 Peter Dimov
13 //
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)
17
18 #include <boost/config.hpp>
19
20 #if defined( BOOST_NO_TYPEID ) || defined( BOOST_NO_STD_TYPEINFO )
21
22 #include <boost/core/typeinfo.hpp>
23
24 namespace boost
25 {
26
27 namespace detail
28 {
29
30 typedef boost::core::typeinfo sp_typeinfo_;
31
32 } // namespace detail
33
34 } // namespace boost
35
36 #define BOOST_SP_TYPEID_(T) BOOST_CORE_TYPEID(T)
37
38 #else // defined( BOOST_NO_TYPEID ) || defined( BOOST_NO_STD_TYPEINFO )
39
40 #include <typeinfo>
41
42 namespace boost
43 {
44
45 namespace detail
46 {
47
48 typedef std::type_info sp_typeinfo_;
49
50 } // namespace detail
51
52 } // namespace boost
53
54 #define BOOST_SP_TYPEID_(T) typeid(T)
55
56 #endif // defined( BOOST_NO_TYPEID ) || defined( BOOST_NO_STD_TYPEINFO )
57
58 #endif  // #ifndef BOOST_SMART_PTR_DETAIL_SP_TYPEINFO_HPP_INCLUDED