mirror of
https://github.com/boostorg/iterator.git
synced 2025-05-12 05:51:37 +00:00
Iterator: Remove obsolete GCC version check.
[SVN r86055]
This commit is contained in:
parent
739c95411f
commit
98db5b4f9a
@ -88,8 +88,7 @@
|
|||||||
# define BOOST_NO_IS_CONVERTIBLE // "is_convertible doesn't work for simple types"
|
# define BOOST_NO_IS_CONVERTIBLE // "is_convertible doesn't work for simple types"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if BOOST_WORKAROUND(__GNUC__, == 2) \
|
#if BOOST_WORKAROUND(__GNUC__, == 3) && BOOST_WORKAROUND(__GNUC_MINOR__, < 4) && !defined(__EDG_VERSION__) \
|
||||||
|| BOOST_WORKAROUND(__GNUC__, == 3) && BOOST_WORKAROUND(__GNUC_MINOR__, < 4) && !defined(__EDG_VERSION__) \
|
|
||||||
|| BOOST_WORKAROUND(__BORLANDC__, BOOST_TESTED_AT(0x551))
|
|| BOOST_WORKAROUND(__BORLANDC__, BOOST_TESTED_AT(0x551))
|
||||||
# define BOOST_NO_IS_CONVERTIBLE_TEMPLATE // The following program fails to compile:
|
# define BOOST_NO_IS_CONVERTIBLE_TEMPLATE // The following program fails to compile:
|
||||||
|
|
||||||
@ -122,10 +121,9 @@
|
|||||||
# define BOOST_ARG_DEPENDENT_TYPENAME
|
# define BOOST_ARG_DEPENDENT_TYPENAME
|
||||||
# endif
|
# endif
|
||||||
|
|
||||||
# if BOOST_WORKAROUND(__GNUC__, == 2) && BOOST_WORKAROUND(__GNUC_MINOR__, BOOST_TESTED_AT(95)) \
|
# if BOOST_WORKAROUND(__BORLANDC__, BOOST_TESTED_AT(0x564))
|
||||||
|| BOOST_WORKAROUND(__BORLANDC__, BOOST_TESTED_AT(0x564))
|
|
||||||
|
|
||||||
// GCC-2.95 eagerly instantiates templated constructors and conversion
|
// GCC-2.95 (obsolete) eagerly instantiates templated constructors and conversion
|
||||||
// operators in convertibility checks, causing premature errors.
|
// operators in convertibility checks, causing premature errors.
|
||||||
//
|
//
|
||||||
// Borland's problems are harder to diagnose due to lack of an
|
// Borland's problems are harder to diagnose due to lack of an
|
||||||
|
@ -10,18 +10,7 @@
|
|||||||
|
|
||||||
namespace boost {
|
namespace boost {
|
||||||
|
|
||||||
// Unfortunately, g++ 2.95.x chokes when we define a class template
|
#define BOOST_ITERATOR_CATEGORY iterator_category
|
||||||
// iterator_category which has the same name as its
|
|
||||||
// std::iterator_category() function, probably due in part to the
|
|
||||||
// "std:: is visible globally" hack it uses. Use
|
|
||||||
// BOOST_ITERATOR_CATEGORY to write code that's portable to older
|
|
||||||
// GCCs.
|
|
||||||
|
|
||||||
# if BOOST_WORKAROUND(__GNUC__, <= 2)
|
|
||||||
# define BOOST_ITERATOR_CATEGORY iterator_category_
|
|
||||||
# else
|
|
||||||
# define BOOST_ITERATOR_CATEGORY iterator_category
|
|
||||||
# endif
|
|
||||||
|
|
||||||
|
|
||||||
template <class Iterator>
|
template <class Iterator>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user