Sha256: 5fa7446c1afe0eedb24b5cb1a4697a7ea37d5f661c792a0b24cea766be284927

Contents?: true

Size: 998 Bytes

Versions: 12

Compression:

Stored size: 998 Bytes

Contents

// 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

#include <boost/config.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 BOOST_CONSTEXPR none_t(init_tag){} // to disable default constructor
};

#endif // old implementation workarounds

} // namespace boost

#endif // header guard

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
passenger-6.0.20 src/cxx_supportlib/vendor-modified/boost/none_t.hpp
passenger-6.0.19 src/cxx_supportlib/vendor-modified/boost/none_t.hpp
passenger-6.0.18 src/cxx_supportlib/vendor-modified/boost/none_t.hpp
passenger-6.0.17 src/cxx_supportlib/vendor-modified/boost/none_t.hpp
passenger-6.0.16 src/cxx_supportlib/vendor-modified/boost/none_t.hpp
passenger-6.0.15 src/cxx_supportlib/vendor-modified/boost/none_t.hpp
passenger-6.0.14 src/cxx_supportlib/vendor-modified/boost/none_t.hpp
passenger-6.0.13 src/cxx_supportlib/vendor-modified/boost/none_t.hpp
passenger-6.0.12 src/cxx_supportlib/vendor-modified/boost/none_t.hpp
passenger-6.0.11 src/cxx_supportlib/vendor-modified/boost/none_t.hpp
passenger-6.0.10 src/cxx_supportlib/vendor-modified/boost/none_t.hpp
passenger-6.0.9 src/cxx_supportlib/vendor-modified/boost/none_t.hpp