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

@ -13,7 +13,8 @@
# pragma warning(disable: 4522) // multiple assignment operators specified warning # pragma warning(disable: 4522) // multiple assignment operators specified warning
#endif #endif
namespace boost { namespace fusion { namespace boost { namespace fusion
{
struct unused_type struct unused_type
{ {
unused_type() unused_type()
@ -53,6 +54,18 @@ namespace boost { namespace fusion {
}; };
unused_type const unused = unused_type(); 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) #if defined(BOOST_MSVC)