added streaming for unused_type

[SVN r50168]
This commit is contained in:
Joel de Guzman
2008-12-06 23:35:05 +00:00
parent fad40f6c9d
commit 1c8e2ccfe4

View File

@ -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 <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)