Files
optional/include/boost/none.hpp

37 lines
728 B
C++
Raw Normal View History

2004-07-07 15:04:52 +00:00
// Copyright (C) 2003, Fernando Luis Cacciola Carballal.
//
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE_1_0.txt or copy at
2004-07-07 15:04:52 +00:00
// http://www.boost.org/LICENSE_1_0.txt)
//
// See http://www.boost.org/lib/optional/ for documentation.
2004-07-07 15:04:52 +00:00
//
// You are welcome to contact the author at:
// fernando_cacciola@hotmail.com
//
#ifndef BOOST_NONE_17SEP2003_HPP
#define BOOST_NONE_17SEP2003_HPP
#include <boost/detail/workaround.hpp>
2004-07-07 15:04:52 +00:00
namespace boost {
#if BOOST_WORKAROUND(_BORLANDC_, <= 0x564)
namespace detail { struct none_helper{}; }
typedef int detail::none_helper::*none_t ;
none_t const none = ((none_t)0) ;
#else
enum none_t {none = 0};
2004-07-07 15:04:52 +00:00
#endif
2004-07-07 15:04:52 +00:00
} // namespace boost
2004-07-07 15:04:52 +00:00
#endif