Remove use of obsolete BOOST_NO_TEMPLATED_STREAMS macro.

It was only defined for no-longer-supported-gcc.

[SVN r86062]
This commit is contained in:
Stephen Kelly
2013-09-30 15:56:52 +00:00
parent 931cf3941b
commit c9ead30713

View File

@ -33,15 +33,10 @@
namespace boost namespace boost
{ {
#if defined (BOOST_NO_TEMPLATED_STREAMS)
template<class T>
inline std::ostream& operator<<(std::ostream& out, optional<T> const& v)
#else
template<class CharType, class CharTrait, class T> template<class CharType, class CharTrait, class T>
inline inline
std::basic_ostream<CharType, CharTrait>& std::basic_ostream<CharType, CharTrait>&
operator<<(std::basic_ostream<CharType, CharTrait>& out, optional<T> const& v) operator<<(std::basic_ostream<CharType, CharTrait>& out, optional<T> const& v)
#endif
{ {
if ( out.good() ) if ( out.good() )
{ {
@ -53,15 +48,10 @@ operator<<(std::basic_ostream<CharType, CharTrait>& out, optional<T> const& v)
return out; return out;
} }
#if defined (BOOST_NO_TEMPLATED_STREAMS)
template<class T>
inline std::istream& operator>>(std::istream& in, optional<T>& v)
#else
template<class CharType, class CharTrait, class T> template<class CharType, class CharTrait, class T>
inline inline
std::basic_istream<CharType, CharTrait>& std::basic_istream<CharType, CharTrait>&
operator>>(std::basic_istream<CharType, CharTrait>& in, optional<T>& v) operator>>(std::basic_istream<CharType, CharTrait>& in, optional<T>& v)
#endif
{ {
if (in.good()) if (in.good())
{ {