mirror of
https://github.com/boostorg/optional.git
synced 2025-07-23 17:17:17 +02:00
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:
@ -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())
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user