]> git.lyx.org Git - lyx.git/blob - 3rdparty/boost/boost/none_t.hpp
Remove python warning
[lyx.git] / 3rdparty / boost / boost / none_t.hpp
1 // Copyright (C) 2003, Fernando Luis Cacciola Carballal.
2 // Copyright (C) 2014, 2015 Andrzej Krzemienski.
3 //
4 // Use, modification, and distribution is subject to the Boost Software
5 // License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at
6 // http://www.boost.org/LICENSE_1_0.txt)
7 //
8 // See http://www.boost.org/libs/optional for documentation.
9 //
10 // You are welcome to contact the author at:
11 //  fernando_cacciola@hotmail.com
12 //
13 #ifndef BOOST_NONE_T_17SEP2003_HPP
14 #define BOOST_NONE_T_17SEP2003_HPP
15
16 #include <boost/config.hpp>
17
18 namespace boost {
19
20 #ifdef BOOST_OPTIONAL_USE_OLD_DEFINITION_OF_NONE
21
22 namespace detail { struct none_helper{}; }
23 typedef int detail::none_helper::*none_t ;
24
25 #elif defined BOOST_OPTIONAL_USE_SINGLETON_DEFINITION_OF_NONE
26
27 class none_t {};
28
29 #else
30
31 struct none_t
32 {
33   struct init_tag{};
34   explicit BOOST_CONSTEXPR none_t(init_tag){} // to disable default constructor
35 };
36
37 #endif // old implementation workarounds
38
39 } // namespace boost
40
41 #endif // header guard