From 8f33f038d15908ff9d167024213d02d1e277df21 Mon Sep 17 00:00:00 2001 From: bolero-MURAKAMI Date: Sat, 26 Sep 2015 00:13:38 +0900 Subject: [PATCH] support for GCC5.2.0 --- sprout/string/string.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sprout/string/string.hpp b/sprout/string/string.hpp index fbe32bcf..a3bdfc39 100644 --- a/sprout/string/string.hpp +++ b/sprout/string/string.hpp @@ -691,7 +691,7 @@ namespace sprout { } SPROUT_CONSTEXPR size_type find_first_not_of(value_type const* s, size_type pos, size_type n) const { -#if SPROUT_GCC_IN_RANGE((5, 1, 0), (5, 1, 1)) +#if SPROUT_GCC_IN_RANGE((5, 1, 0), (5, 3, 0)) return sprout::string_detail::find_first_not_of_impl(begin(), size(), sprout::ptr_index(s), pos, n); #else return sprout::string_detail::find_first_not_of_impl(begin(), size(), s, pos, n); @@ -712,7 +712,7 @@ namespace sprout { } SPROUT_CONSTEXPR size_type find_last_not_of(value_type const* s, size_type pos, size_type n) const { -#if SPROUT_GCC_IN_RANGE((5, 1, 0), (5, 1, 1)) +#if SPROUT_GCC_IN_RANGE((5, 1, 0), (5, 3, 0)) return sprout::string_detail::find_last_not_of_impl(begin(), size(), sprout::ptr_index(s), pos, n); #else return sprout::string_detail::find_last_not_of_impl(begin(), size(), s, pos, n);