-// Copyright (C) 2003, Fernando Luis Cacciola Carballal.\r
-// Copyright (C) 2007, Anthony Williams\r
-// Copyright (C) 2007, Steven Watanabe, Richard Smith\r
-//\r
-// Distributed under the Boost Software License, Version 1.0.\r
-// (See accompanying file LICENSE_1_0.txt or copy at\r
-// http://www.boost.org/LICENSE_1_0.txt)\r
-//\r
-// See http://www.boost.org/lib/optional/ for documentation.\r
-//\r
-// You are welcome to contact the author at:\r
-// fernando.cacciola@gmail.com\r
-//\r
-#ifndef BOOST_NONE_17SEP2003_HPP\r
-#define BOOST_NONE_17SEP2003_HPP\r
-\r
-namespace boost\r
-{\r
- namespace detail\r
- {\r
- class none_helper;\r
- }\r
-\r
- inline void none(detail::none_helper);\r
-\r
- namespace detail\r
- {\r
- class none_helper\r
- {\r
- private:\r
- \r
- none_helper( none_helper const& ) {}\r
- \r
- friend void boost::none(none_helper);\r
- };\r
- }\r
-\r
- typedef void (*none_t)(detail::none_helper);\r
-\r
- inline void none(detail::none_helper) {}\r
-}\r
-\r
-#endif\r
+// 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
+// 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_17SEP2003_HPP
+#define BOOST_NONE_17SEP2003_HPP
+
+#include "boost/none_t.hpp"
+
+// NOTE: Borland users have to include this header outside any precompiled headers
+// (bcc<=5.64 cannot include instance data in a precompiled header)
+// -- * To be verified, now that there's no unnamed namespace
+
+namespace boost {
+
+none_t const none = ((none_t)0) ;
+
+} // namespace boost
+
+#endif
+