forked from boostorg/iterator
Merge pull request #67 from joaquintides/patch-2
supressed spurious type-limits warning
This commit is contained in:
@ -8,6 +8,7 @@
|
|||||||
#define BOOST_ITERATOR_ADVANCE_HPP
|
#define BOOST_ITERATOR_ADVANCE_HPP
|
||||||
|
|
||||||
#include <boost/config.hpp>
|
#include <boost/config.hpp>
|
||||||
|
#include <boost/detail/workaround.hpp>
|
||||||
#include <boost/iterator/iterator_categories.hpp>
|
#include <boost/iterator/iterator_categories.hpp>
|
||||||
|
|
||||||
namespace boost {
|
namespace boost {
|
||||||
@ -28,6 +29,12 @@ namespace iterators {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#if BOOST_WORKAROUND(BOOST_GCC_VERSION, >= 40600)
|
||||||
|
// type-limits warning issued below when n is an unsigned integral
|
||||||
|
#pragma GCC diagnostic push
|
||||||
|
#pragma GCC diagnostic ignored "-Wtype-limits"
|
||||||
|
#endif
|
||||||
|
|
||||||
template <typename BidirectionalIterator, typename Distance>
|
template <typename BidirectionalIterator, typename Distance>
|
||||||
inline BOOST_CXX14_CONSTEXPR void
|
inline BOOST_CXX14_CONSTEXPR void
|
||||||
advance_impl(
|
advance_impl(
|
||||||
@ -50,6 +57,10 @@ namespace iterators {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#if BOOST_WORKAROUND(BOOST_GCC_VERSION, >= 40600)
|
||||||
|
#pragma GCC diagnostic pop
|
||||||
|
#endif
|
||||||
|
|
||||||
template <typename RandomAccessIterator, typename Distance>
|
template <typename RandomAccessIterator, typename Distance>
|
||||||
inline BOOST_CXX14_CONSTEXPR void
|
inline BOOST_CXX14_CONSTEXPR void
|
||||||
advance_impl(
|
advance_impl(
|
||||||
|
Reference in New Issue
Block a user