Ticket #5784: stream.patch
File stream.patch, 2.1 KB (added by , 11 years ago) |
---|
-
boost/fusion/support/pair.hpp
8 8 #if !defined(FUSION_PAIR_07222005_1203) 9 9 #define FUSION_PAIR_07222005_1203 10 10 11 #include <iosfwd> 12 11 13 #include <boost/fusion/support/detail/access.hpp> 12 14 #include <boost/fusion/support/detail/as_fusion_element.hpp> 13 15 #include <boost/config.hpp> … … 74 76 return pair<First, typename detail::as_fusion_element<Second>::type>(val); 75 77 } 76 78 77 template <typename OStream, typenameFirst, typename Second>78 inline OStream&79 operator<<( OStream& os, pair<First, Second> const& p)79 template <typename First, typename Second> 80 inline std::ostream& 81 operator<<(std::ostream& os, pair<First, Second> const& p) 80 82 { 81 83 os << p.second; 82 84 return os; 83 85 } 84 86 85 template <typename IStream, typenameFirst, typename Second>86 inline IStream&87 operator>>( IStream& is, pair<First, Second>& p)87 template <typename First, typename Second> 88 inline std::istream& 89 operator>>(std::istream& is, pair<First, Second>& p) 88 90 { 89 91 is >> p.second; 90 92 return is; -
boost/fusion/support/unused.hpp
7 7 #if !defined(BOOST_FUSION_SUPPORT_UNUSED_20070305_1038) 8 8 #define BOOST_FUSION_SUPPORT_UNUSED_20070305_1038 9 9 10 #include <iosfwd> 11 10 12 #include <boost/config.hpp> 11 13 #if defined(BOOST_MSVC) 12 14 # pragma warning(push) … … 65 67 }; 66 68 } 67 69 68 template <typename Out> 69 inline Out& operator<<(Out& out, detail::unused_only const&) 70 inline std::ostream& operator<<(std::ostream& out, detail::unused_only const&) 70 71 { 71 72 return out; 72 73 } 73 74 74 template <typename In> 75 inline In& operator>>(In& in, unused_type&) 75 inline std::istream& operator>>(std::istream& in, unused_type&) 76 76 { 77 77 return in; 78 78 }