Ticket #2103: 2103.patch
File 2103.patch, 1.9 KB (added by , 14 years ago) |
---|
-
boost/optional/optional_fwd.hpp
old new 12 12 #ifndef BOOST_OPTIONAL_OPTIONAL_FWD_FLC_19NOV2002_HPP 13 13 #define BOOST_OPTIONAL_OPTIONAL_FWD_FLC_19NOV2002_HPP 14 14 15 #include <iosfwd> 16 15 17 namespace boost { 16 18 17 19 template<class T> class optional ; 18 20 21 // TODO: Add BOOST_NO_TEMPLATED_STREAMS to config framework and change 22 // this and other libraries that use BOOST_NO_TEMPLATED_STREAMS. 23 #if defined __GNUC__ 24 # if (__GNUC__ == 2 && __GNUC_MINOR__ <= 97) 25 # define BOOST_OPTIONAL_NO_TEMPLATED_STREAMS 26 # endif 27 #endif // __GNUC__ 28 29 #if defined (BOOST_OPTIONAL_NO_TEMPLATED_STREAMS) 30 std::ostream& operator<<(std::ostream& out, optional<T> const& v); 31 #else 32 template<class CharType, class CharTrait, class T> 33 std::basic_ostream<CharType, CharTrait>& 34 operator<<(std::basic_ostream<CharType, CharTrait>& out, optional<T> const& v); 35 #endif 36 19 37 } // namespace boost 20 38 21 39 #endif -
boost/optional/optional_io.hpp
old new 12 12 #ifndef BOOST_OPTIONAL_OPTIONAL_IO_FLC_19NOV2002_HPP 13 13 #define BOOST_OPTIONAL_OPTIONAL_IO_FLC_19NOV2002_HPP 14 14 15 #if defined __GNUC__16 # if (__GNUC__ == 2 && __GNUC_MINOR__ <= 97)17 # define BOOST_OPTIONAL_NO_TEMPLATED_STREAMS18 # endif19 #endif // __GNUC__20 21 15 #if defined BOOST_OPTIONAL_NO_TEMPLATED_STREAMS 22 16 # include <iostream> 23 17 #else … … 32 26 namespace boost 33 27 { 34 28 35 #if defined (BOOST_ NO_TEMPLATED_STREAMS)29 #if defined (BOOST_OPTIONAL_NO_TEMPLATED_STREAMS) 36 30 template<class T> 37 31 inline std::ostream& operator<<(std::ostream& out, optional<T> const& v) 38 32 #else … … 52 46 return out; 53 47 } 54 48 55 #if defined (BOOST_ NO_TEMPLATED_STREAMS)49 #if defined (BOOST_OPTIONAL_NO_TEMPLATED_STREAMS) 56 50 template<class T> 57 51 inline std::istream& operator>>(std::istream& in, optional<T>& v) 58 52 #else