2004-07-07 15:04:52 +00:00
|
|
|
// Copyright (C) 2003, Fernando Luis Cacciola Carballal.
|
2007-04-12 14:25:21 +00:00
|
|
|
// Copyright (C) 2007, Anthony Williams
|
|
|
|
// Copyright (C) 2007, Steven Watanabe, Richard Smith
|
2004-07-07 15:04:52 +00:00
|
|
|
//
|
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:
|
2007-04-12 14:25:21 +00:00
|
|
|
// fernando.cacciola@gmail.com
|
2004-07-07 15:04:52 +00:00
|
|
|
//
|
|
|
|
#ifndef BOOST_NONE_17SEP2003_HPP
|
|
|
|
#define BOOST_NONE_17SEP2003_HPP
|
|
|
|
|
2007-04-12 14:25:21 +00:00
|
|
|
namespace boost
|
|
|
|
{
|
|
|
|
namespace detail
|
|
|
|
{
|
|
|
|
class none_helper;
|
|
|
|
}
|
|
|
|
|
|
|
|
inline void none(detail::none_helper);
|
|
|
|
|
|
|
|
namespace detail
|
|
|
|
{
|
|
|
|
class none_helper
|
|
|
|
{
|
|
|
|
private:
|
|
|
|
|
|
|
|
none_helper( none_helper const& ) {}
|
|
|
|
|
|
|
|
friend void boost::none(none_helper);
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
typedef void (*none_t)(detail::none_helper);
|
|
|
|
|
|
|
|
inline void none(detail::none_helper) {}
|
|
|
|
}
|
|
|
|
|
2007-04-12 19:43:30 +00:00
|
|
|
#endif
|