// Copyright Anthony Williams 2006. // Distributed under 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) #ifndef NONE_HPP #define NONE_HPP #include namespace boost { namespace detail { class none_helper; } detail::none_helper none(detail::none_helper); namespace detail { class none_helper { private: none_helper() {} none_helper(const none_helper&) {} friend none_helper boost::none(none_helper); }; } typedef detail::none_helper (*none_t)(detail::none_helper); inline detail::none_helper none(detail::none_helper) { return detail::none_helper(); } } #endif