mirror of
https://github.com/boostorg/fusion.git
synced 2025-07-21 00:02:42 +02:00
added streaming for unused_type
[SVN r50168]
This commit is contained in:
@ -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)
|
||||||
|
Reference in New Issue
Block a user