2004-07-07 15:04:52 +00:00
|
|
|
// Copyright (C) 2003, Fernando Luis Cacciola Carballal.
|
|
|
|
//
|
2006-07-20 23:23:09 +00:00
|
|
|
// 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)
|
|
|
|
//
|
2006-07-20 23:23:09 +00:00
|
|
|
// 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
|
|
|
|
|
2007-03-27 16:02:57 +00:00
|
|
|
#include <boost/detail/workaround.hpp>
|
|
|
|
|
2004-07-07 15:04:52 +00:00
|
|
|
namespace boost {
|
|
|
|
|
2007-03-27 16:02:57 +00:00
|
|
|
#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
|
|
|
|
|
2007-03-01 23:08:33 +00:00
|
|
|
enum none_t {none = 0};
|
2004-07-07 15:04:52 +00:00
|
|
|
|
2007-03-27 16:02:57 +00:00
|
|
|
#endif
|
2004-07-07 15:04:52 +00:00
|
|
|
|
2007-03-27 16:02:57 +00:00
|
|
|
} // namespace boost
|
2007-03-01 23:08:33 +00:00
|
|
|
|
2004-07-07 15:04:52 +00:00
|
|
|
#endif
|
|
|
|
|