forked from boostorg/fusion
@ -8,6 +8,8 @@
|
||||
#if !defined(FUSION_PAIR_07222005_1203)
|
||||
#define FUSION_PAIR_07222005_1203
|
||||
|
||||
#include <iosfwd>
|
||||
|
||||
#include <boost/fusion/support/detail/access.hpp>
|
||||
#include <boost/fusion/support/detail/as_fusion_element.hpp>
|
||||
#include <boost/config.hpp>
|
||||
@ -74,17 +76,17 @@ namespace boost { namespace fusion
|
||||
return pair<First, typename detail::as_fusion_element<Second>::type>(val);
|
||||
}
|
||||
|
||||
template <typename OStream, typename First, typename Second>
|
||||
inline OStream&
|
||||
operator<<(OStream& os, pair<First, Second> const& p)
|
||||
template <typename First, typename Second>
|
||||
inline std::ostream&
|
||||
operator<<(std::ostream& os, pair<First, Second> const& p)
|
||||
{
|
||||
os << p.second;
|
||||
return os;
|
||||
}
|
||||
|
||||
template <typename IStream, typename First, typename Second>
|
||||
inline IStream&
|
||||
operator>>(IStream& is, pair<First, Second>& p)
|
||||
template <typename First, typename Second>
|
||||
inline std::istream&
|
||||
operator>>(std::istream& is, pair<First, Second>& p)
|
||||
{
|
||||
is >> p.second;
|
||||
return is;
|
||||
|
Reference in New Issue
Block a user