src/cxx_supportlib/vendor-modified/boost/iterator/advance.hpp in passenger-6.0.14 vs src/cxx_supportlib/vendor-modified/boost/iterator/advance.hpp in passenger-6.0.15

- old
+ new

@@ -6,10 +6,11 @@ #ifndef BOOST_ITERATOR_ADVANCE_HPP #define BOOST_ITERATOR_ADVANCE_HPP #include <boost/config.hpp> +#include <boost/detail/workaround.hpp> #include <boost/iterator/iterator_categories.hpp> namespace boost { namespace iterators { @@ -26,10 +27,16 @@ ++it; --n; } } +#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> inline BOOST_CXX14_CONSTEXPR void advance_impl( BidirectionalIterator& it , Distance n @@ -47,9 +54,13 @@ --it; ++n; } } } + +#if BOOST_WORKAROUND(BOOST_GCC_VERSION, >= 40600) +#pragma GCC diagnostic pop +#endif template <typename RandomAccessIterator, typename Distance> inline BOOST_CXX14_CONSTEXPR void advance_impl( RandomAccessIterator& it