updated to use BOOST_IOSTREAMS_GCC

[SVN r27362]
This commit is contained in:
Jonathan Turkanis
2005-02-13 21:12:21 +00:00
parent f911afe8bd
commit 64e784fc6d
3 changed files with 7 additions and 7 deletions

View File

@@ -16,8 +16,8 @@
#include <boost/config.hpp> // BOOST_INTEL.
#if defined(_GNUC_) && !defined(BOOST_INTEL)
# define BOOST_IOSTREAMS_GCC (_GNUC_ * 100 + __GNUC_MINOR__)
#if defined(__GNUC__) && !defined(BOOST_INTEL)
# define BOOST_IOSTREAMS_GCC (__GNUC__ * 100 + __GNUC_MINOR__)
#endif
#endif // #ifndef BOOST_IOSTREAMS_DETAIL_CONFIG_GCC_HPP_INCLUDED

View File

@@ -16,12 +16,13 @@
#include <boost/config.hpp> // BOOST_MSVC.
#include <boost/detail/workaround.hpp>
#include <boost/iostreams/detail/config/gcc.hpp>
#if !defined(BOOST_IOSTREAMS_BROKEN_OVERLOAD_RESOLUTION)
# if BOOST_WORKAROUND(__MWERKS__, <= 0x3003) || \
BOOST_WORKAROUND(__BORLANDC__, < 0x600) || \
BOOST_WORKAROUND(BOOST_MSVC, <= 1300) || \
BOOST_WORKAROUND(__GNUC__, == 2) && (__GNUC_MINOR__ <= 95)
BOOST_WORKAROUND(BOOST_IOSTREAMS_GCC, <= 295) \
/**/
# define BOOST_IOSTREAMS_BROKEN_OVERLOAD_RESOLUTION
# endif

View File

@@ -18,6 +18,7 @@
#include <boost/iostreams/detail/adapter/mode_adapter.hpp>
#include <boost/iostreams/detail/adapter/output_iterator_adapter.hpp>
#include <boost/iostreams/detail/adapter/range_adapter.hpp>
#include <boost/iostreams/detail/config/gcc.hpp>
#include <boost/iostreams/detail/config/overload_resolution.hpp>
#include <boost/iostreams/detail/config/wide_streams.hpp>
#include <boost/iostreams/detail/enable_if_stream.hpp>
@@ -64,11 +65,9 @@ resolve( const T& t
// I suspect that the compilers which require this workaround may
// be correct, but I'm not sure why :(
#if BOOST_WORKAROUND(BOOST_INTEL_CXX_VERSION, BOOST_TESTED_AT(810)) || \
#if BOOST_WORKAROUND(BOOST_INTEL_CXX_VERSION, BOOST_TESTED_AT(810)) ||\
BOOST_WORKAROUND(__MWERKS__, BOOST_TESTED_AT(0x3205)) || \
!defined(BOOST_INTEL) && ( BOOST_WORKAROUND(__GNUC__, <= 3) || \
BOOST_WORKAROUND(__GNUC__, == 4) && \
BOOST_WORKAROUND(__GNUC_MINOR__, BOOST_TESTED_AT(0)) ) \
BOOST_WORKAROUND(BOOST_IOSTREAMS_GCC, BOOST_TESTED_AT(400)) \
/**/
, typename disable_if< is_iterator_range<T> >::type* = 0
#endif