From dbb39f3589e2bcd1d8831e3feeb382d1b2c411b0 Mon Sep 17 00:00:00 2001 From: John Maddock Date: Mon, 31 Jan 2005 11:06:54 +0000 Subject: [PATCH] Changed assert code to try and clear up a mysterious sunpro problem. [SVN r26958] --- include/boost/regex/v4/cpp_regex_traits.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(...) {