diff --git a/include/boost/regex/v4/cpp_regex_traits.hpp b/include/boost/regex/v4/cpp_regex_traits.hpp index 692d38e5..da621856 100644 --- a/include/boost/regex/v4/cpp_regex_traits.hpp +++ b/include/boost/regex/v4/cpp_regex_traits.hpp @@ -561,7 +561,7 @@ typename cpp_regex_traits_implementation::string_type while(result.size() && (charT(0) == *result.rbegin())) result.erase(result.size() - 1); #endif - BOOST_ASSERT(result.find(charT(0)) == string_type::npos); + BOOST_ASSERT(std::find(result.begin(), result.end(), charT(0)) == result.end()); } catch(...) {