mirror of
https://github.com/boostorg/optional.git
synced 2025-07-30 04:27:19 +02:00
Merge branch 'make_none_t_literal_type' of https://github.com/citrusmoose/optional into citrusmoose-make_none_t_literal_type
This commit is contained in:
@ -13,6 +13,8 @@
|
|||||||
#ifndef BOOST_NONE_T_17SEP2003_HPP
|
#ifndef BOOST_NONE_T_17SEP2003_HPP
|
||||||
#define BOOST_NONE_T_17SEP2003_HPP
|
#define BOOST_NONE_T_17SEP2003_HPP
|
||||||
|
|
||||||
|
#include <boost/config.hpp>
|
||||||
|
|
||||||
namespace boost {
|
namespace boost {
|
||||||
|
|
||||||
#ifdef BOOST_OPTIONAL_USE_OLD_DEFINITION_OF_NONE
|
#ifdef BOOST_OPTIONAL_USE_OLD_DEFINITION_OF_NONE
|
||||||
@ -29,7 +31,7 @@ class none_t {};
|
|||||||
struct none_t
|
struct none_t
|
||||||
{
|
{
|
||||||
struct init_tag{};
|
struct init_tag{};
|
||||||
explicit none_t(init_tag){} // to disable default constructor
|
explicit BOOST_CONSTEXPR none_t(init_tag){} // to disable default constructor
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif // old implementation workarounds
|
#endif // old implementation workarounds
|
||||||
|
Reference in New Issue
Block a user