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
committed by Andrzej Krzemienski
parent 51d3f2e761
commit ed33f2bf2f

View File

@ -23,15 +23,10 @@
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>
inline
std::basic_ostream<CharType, CharTrait>&
operator<<(std::basic_ostream<CharType, CharTrait>& out, optional<T> const& v)
#endif
{
if ( out.good() )
{
@ -43,15 +38,10 @@ operator<<(std::basic_ostream<CharType, CharTrait>& out, optional<T> const& v)
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>
inline
std::basic_istream<CharType, CharTrait>&
operator>>(std::basic_istream<CharType, CharTrait>& in, optional<T>& v)
#endif
{
if (in.good())
{