File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 77// When STLport is used with native streams, _STL::ostringstream().str() is not
88// _STL::string, but std::string. This confuses to_python(), so we'll use
99// strstream instead. Also, GCC 2.95.2 doesn't have sstream.
10- # if defined(__SGI_STL_PORT) ? __SGI_STL_OWN_IOSTREAMS : !defined(__GNUC__) || __GNUC__ > 2
10+ # if defined(__SGI_STL_PORT) ? defined( __SGI_STL_OWN_IOSTREAMS) : ( !defined(__GNUC__) || __GNUC__ > 2)
1111# include < sstream>
1212# else
1313# include < strstream>
@@ -482,7 +482,7 @@ namespace detail
482482
483483// When STLport is used with native streams, _STL::ostringstream().str() is not
484484// _STL::string, but std::string.
485- #if defined(__SGI_STL_PORT) ? __SGI_STL_OWN_IOSTREAMS : !defined(__GNUC__)
485+ #if defined(__SGI_STL_PORT) ? defined( __SGI_STL_OWN_IOSTREAMS) : ( !defined(__GNUC__) || __GNUC__ > 2 )
486486 std::ostringstream s;
487487 s << BOOST_PYTHON_CONVERSION::from_python (args[0 ].get (), boost::python::type<operand>());
488488 return BOOST_PYTHON_CONVERSION::to_python (s.str ());
You can’t perform that action at this time.
0 commit comments