Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r50168 - trunk/boost/fusion/support
From: joel_at_[hidden]
Date: 2008-12-06 18:35:05


Author: djowel
Date: 2008-12-06 18:35:05 EST (Sat, 06 Dec 2008)
New Revision: 50168
URL: http://svn.boost.org/trac/boost/changeset/50168

Log:
added streaming for unused_type
Text files modified:
   trunk/boost/fusion/support/unused.hpp | 17 +++++++++++++++--
   1 files changed, 15 insertions(+), 2 deletions(-)

Modified: trunk/boost/fusion/support/unused.hpp
==============================================================================
--- trunk/boost/fusion/support/unused.hpp (original)
+++ trunk/boost/fusion/support/unused.hpp 2008-12-06 18:35:05 EST (Sat, 06 Dec 2008)
@@ -1,7 +1,7 @@
 /*=============================================================================
     Copyright (c) 2001-2006 Joel de Guzman
 
- Distributed under the Boost Software License, Version 1.0. (See accompanying
+ 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)
 ==============================================================================*/
 #if !defined(BOOST_FUSION_SUPPORT_UNUSED_20070305_1038)
@@ -13,7 +13,8 @@
 # pragma warning(disable: 4522) // multiple assignment operators specified warning
 #endif
 
-namespace boost { namespace fusion {
+namespace boost { namespace fusion
+{
     struct unused_type
     {
         unused_type()
@@ -53,6 +54,18 @@
     };
 
     unused_type const unused = unused_type();
+
+ template <typename Out>
+ inline Out& operator<<(Out& out, unused_type const&)
+ {
+ return out;
+ }
+
+ template <typename Out>
+ inline Out& operator>>(Out& out, unused_type&)
+ {
+ return out;
+ }
 }}
 
 #if defined(BOOST_MSVC)


Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk