summaryrefslogtreecommitdiff
path: root/boost/none_t.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'boost/none_t.hpp')
-rw-r--r--boost/none_t.hpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/boost/none_t.hpp b/boost/none_t.hpp
index 63ad92652a..13ce455b16 100644
--- a/boost/none_t.hpp
+++ b/boost/none_t.hpp
@@ -1,4 +1,5 @@
// Copyright (C) 2003, Fernando Luis Cacciola Carballal.
+// Copyright (C) 2014 Andrzej Krzemienski.
//
// Use, modification, and distribution is subject to the Boost Software
// License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at
@@ -14,9 +15,12 @@
namespace boost {
+#ifdef BOOST_OPTIONAL_USE_OLD_DEFINITION_OF_NONE
namespace detail { struct none_helper{}; }
-
typedef int detail::none_helper::*none_t ;
+#else
+class none_t {};
+#endif
} // namespace boost