From 1c8e2ccfe474e3cb7a186ecdadf15af5fb11086a Mon Sep 17 00:00:00 2001 From: Joel de Guzman Date: Sat, 6 Dec 2008 23:35:05 +0000 Subject: [PATCH] added streaming for unused_type [SVN r50168] --- include/boost/fusion/support/unused.hpp | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/include/boost/fusion/support/unused.hpp b/include/boost/fusion/support/unused.hpp index dc2014ec..644f9823 100644 --- a/include/boost/fusion/support/unused.hpp +++ b/include/boost/fusion/support/unused.hpp @@ -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 @@ namespace boost { namespace fusion { }; unused_type const unused = unused_type(); + + template + inline Out& operator<<(Out& out, unused_type const&) + { + return out; + } + + template + inline Out& operator>>(Out& out, unused_type&) + { + return out; + } }} #if defined(BOOST_MSVC)