diff --git a/include/boost/regex/v4/regex_token_iterator.hpp b/include/boost/regex/v4/regex_token_iterator.hpp index 3783499e..ac314d41 100644 --- a/include/boost/regex/v4/regex_token_iterator.hpp +++ b/include/boost/regex/v4/regex_token_iterator.hpp @@ -91,7 +91,7 @@ public: { if(N == -1) return false; - if(N+1 < subs.size()) + if(N+1 < (int)subs.size()) { ++N; result =((subs[N] == -1) ? value_type(what.prefix().str()) : value_type(what[subs[N]].str()));