Update of /cvsroot/boost/boost/boost
In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv23041

Modified Files:
      Tag: RC_1_34_0
        none.hpp 
Log Message:
Updated single-header implementation

Index: none.hpp
===================================================================
RCS file: /cvsroot/boost/boost/boost/none.hpp,v
retrieving revision 1.3.6.4
retrieving revision 1.3.6.5
diff -u -d -r1.3.6.4 -r1.3.6.5
--- none.hpp    28 Mar 2007 21:26:19 -0000      1.3.6.4
+++ none.hpp    12 Apr 2007 14:25:21 -0000      1.3.6.5
@@ -1,4 +1,6 @@
 // Copyright (C) 2003, Fernando Luis Cacciola Carballal.
+// Copyright (C) 2007, Anthony Williams
+// Copyright (C) 2007, Steven Watanabe, Richard Smith
 //
 // Distributed under the Boost Software License, Version 1.0.
 // (See accompanying file LICENSE_1_0.txt or copy at
@@ -7,30 +9,35 @@
 // See http://www.boost.org/lib/optional/ for documentation.
 //
 // You are welcome to contact the author at:
-//  [EMAIL PROTECTED]
+// [EMAIL PROTECTED]
 //
 #ifndef BOOST_NONE_17SEP2003_HPP
 #define BOOST_NONE_17SEP2003_HPP
 
-#include <boost/detail/workaround.hpp>
-
-namespace boost {
-
-#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
+namespace boost
+{
+  namespace detail
+  {
+    class none_helper;
+  }
 
-enum none_t {none = 0};
+  inline void none(detail::none_helper);
 
-#endif
+  namespace detail
+  {
+    class none_helper
+    {
+    private:
+      
+      none_helper( none_helper const& ) {}
+      
+      friend void boost::none(none_helper);
+    };
+  }
 
-} // namespace boost
+  typedef void (*none_t)(detail::none_helper);
 
-#endif
+  inline void none(detail::none_helper) {}
+}
 
+#endif
\ No newline at end of file


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Boost-cvs mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/boost-cvs

Reply via email to