mirror of
https://github.com/boostorg/fusion.git
synced 2025-07-30 20:47:31 +02:00
@ -8,6 +8,8 @@
|
|||||||
#if !defined(FUSION_PAIR_07222005_1203)
|
#if !defined(FUSION_PAIR_07222005_1203)
|
||||||
#define FUSION_PAIR_07222005_1203
|
#define FUSION_PAIR_07222005_1203
|
||||||
|
|
||||||
|
#include <iosfwd>
|
||||||
|
|
||||||
#include <boost/fusion/support/detail/access.hpp>
|
#include <boost/fusion/support/detail/access.hpp>
|
||||||
#include <boost/fusion/support/detail/as_fusion_element.hpp>
|
#include <boost/fusion/support/detail/as_fusion_element.hpp>
|
||||||
#include <boost/config.hpp>
|
#include <boost/config.hpp>
|
||||||
@ -74,17 +76,17 @@ namespace boost { namespace fusion
|
|||||||
return pair<First, typename detail::as_fusion_element<Second>::type>(val);
|
return pair<First, typename detail::as_fusion_element<Second>::type>(val);
|
||||||
}
|
}
|
||||||
|
|
||||||
template <typename OStream, typename First, typename Second>
|
template <typename First, typename Second>
|
||||||
inline OStream&
|
inline std::ostream&
|
||||||
operator<<(OStream& os, pair<First, Second> const& p)
|
operator<<(std::ostream& os, pair<First, Second> const& p)
|
||||||
{
|
{
|
||||||
os << p.second;
|
os << p.second;
|
||||||
return os;
|
return os;
|
||||||
}
|
}
|
||||||
|
|
||||||
template <typename IStream, typename First, typename Second>
|
template <typename First, typename Second>
|
||||||
inline IStream&
|
inline std::istream&
|
||||||
operator>>(IStream& is, pair<First, Second>& p)
|
operator>>(std::istream& is, pair<First, Second>& p)
|
||||||
{
|
{
|
||||||
is >> p.second;
|
is >> p.second;
|
||||||
return is;
|
return is;
|
||||||
|
@ -7,6 +7,8 @@
|
|||||||
#if !defined(BOOST_FUSION_SUPPORT_UNUSED_20070305_1038)
|
#if !defined(BOOST_FUSION_SUPPORT_UNUSED_20070305_1038)
|
||||||
#define BOOST_FUSION_SUPPORT_UNUSED_20070305_1038
|
#define BOOST_FUSION_SUPPORT_UNUSED_20070305_1038
|
||||||
|
|
||||||
|
#include <iosfwd>
|
||||||
|
|
||||||
#include <boost/config.hpp>
|
#include <boost/config.hpp>
|
||||||
#if defined(BOOST_MSVC)
|
#if defined(BOOST_MSVC)
|
||||||
# pragma warning(push)
|
# pragma warning(push)
|
||||||
@ -65,14 +67,12 @@ namespace boost { namespace fusion
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
template <typename Out>
|
inline std::ostream& operator<<(std::ostream& out, detail::unused_only const&)
|
||||||
inline Out& operator<<(Out& out, detail::unused_only const&)
|
|
||||||
{
|
{
|
||||||
return out;
|
return out;
|
||||||
}
|
}
|
||||||
|
|
||||||
template <typename In>
|
inline std::istream& operator>>(std::istream& in, unused_type&)
|
||||||
inline In& operator>>(In& in, unused_type&)
|
|
||||||
{
|
{
|
||||||
return in;
|
return in;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user