diff --git a/include/boost/core/detail/string_view.hpp b/include/boost/core/detail/string_view.hpp index 3c35c48..daa9a5d 100644 --- a/include/boost/core/detail/string_view.hpp +++ b/include/boost/core/detail/string_view.hpp @@ -49,6 +49,11 @@ template<> struct sv_to_uchar typedef unsigned char type; }; +#if defined(__GNUC__) +# pragma GCC diagnostic push +# pragma GCC diagnostic ignored "-Wtype-limits" +#endif + template BOOST_CXX14_CONSTEXPR std::size_t find_first_of( Ch const* p_, std::size_t n_, Ch const* s, std::size_t pos, std::size_t n ) BOOST_NOEXCEPT { typedef typename sv_to_uchar::type UCh; @@ -315,6 +320,10 @@ template BOOST_CXX14_CONSTEXPR std::size_t find_last_not_of( Ch const* return npos; } +#if defined(__GNUC__) +# pragma GCC diagnostic pop +#endif + } // namespace detail template class basic_string_view