forked from boostorg/optional
Fixed bug in optional_io
[SVN r32979]
This commit is contained in:
@ -12,17 +12,17 @@
|
|||||||
#ifndef BOOST_OPTIONAL_OPTIONAL_IO_FLC_19NOV2002_HPP
|
#ifndef BOOST_OPTIONAL_OPTIONAL_IO_FLC_19NOV2002_HPP
|
||||||
#define BOOST_OPTIONAL_OPTIONAL_IO_FLC_19NOV2002_HPP
|
#define BOOST_OPTIONAL_OPTIONAL_IO_FLC_19NOV2002_HPP
|
||||||
|
|
||||||
# if defined __GNUC__
|
#if defined __GNUC__
|
||||||
# if (__GNUC__ == 2 && __GNUC_MINOR__ <= 97)
|
# if (__GNUC__ == 2 && __GNUC_MINOR__ <= 97)
|
||||||
#define BOOST_OPTIONAL_NO_TEMPLATED_STREAMS
|
# define BOOST_OPTIONAL_NO_TEMPLATED_STREAMS
|
||||||
#endif
|
# endif
|
||||||
#endif // __GNUC__
|
#endif // __GNUC__
|
||||||
|
|
||||||
#if defined BOOST_OPTIONAL_NO_TEMPLATED_STREAMS
|
#if defined BOOST_OPTIONAL_NO_TEMPLATED_STREAMS
|
||||||
#include <iostream>
|
# include <iostream>
|
||||||
#else
|
#else
|
||||||
#include <istream>
|
# include <istream>
|
||||||
#include <ostream>
|
# include <ostream>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
@ -60,7 +60,7 @@ 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)
|
||||||
#else
|
#endif
|
||||||
{
|
{
|
||||||
if ( in.good() )
|
if ( in.good() )
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user