mirror of
https://github.com/saitohirga/WSJT-X.git
synced 2024-11-16 00:51:56 -05:00
ecaa982b9f
git-svn-id: svn+ssh://svn.code.sf.net/p/wsjt/wsjt/branches/wsjtx@7593 ab8295b8-cf94-4d9e-aec4-7959e3be5d79
40 lines
992 B
C++
40 lines
992 B
C++
// Copyright (C) 2003, Fernando Luis Cacciola Carballal.
|
|
// Copyright (C) 2014, 2015 Andrzej Krzemienski.
|
|
//
|
|
// Use, modification, and distribution is subject to 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)
|
|
//
|
|
// See http://www.boost.org/libs/optional for documentation.
|
|
//
|
|
// You are welcome to contact the author at:
|
|
// fernando_cacciola@hotmail.com
|
|
//
|
|
#ifndef BOOST_NONE_T_17SEP2003_HPP
|
|
#define BOOST_NONE_T_17SEP2003_HPP
|
|
|
|
namespace boost {
|
|
|
|
#ifdef BOOST_OPTIONAL_USE_OLD_DEFINITION_OF_NONE
|
|
|
|
namespace detail { struct none_helper{}; }
|
|
typedef int detail::none_helper::*none_t ;
|
|
|
|
#elif defined BOOST_OPTIONAL_USE_SINGLETON_DEFINITION_OF_NONE
|
|
|
|
class none_t {};
|
|
|
|
#else
|
|
|
|
struct none_t
|
|
{
|
|
struct init_tag{};
|
|
explicit none_t(init_tag){} // to disable default constructor
|
|
};
|
|
|
|
#endif // old implementation workarounds
|
|
|
|
} // namespace boost
|
|
|
|
#endif // header guard
|