diff --git a/include/boost/regex/v4/basic_regex.hpp b/include/boost/regex/v4/basic_regex.hpp index 1b5a2de8..737a24bd 100644 --- a/include/boost/regex/v4/basic_regex.hpp +++ b/include/boost/regex/v4/basic_regex.hpp @@ -218,7 +218,7 @@ public: int BOOST_REGEX_CALL compare(const reg_expression&) const; bool BOOST_REGEX_CALL operator==(const reg_expression& e)const { return compare(e) == 0; } - bool operator != (const basic_regex& e) + bool operator != (const reg_expression& e) { return compare(e) != 0; } bool BOOST_REGEX_CALL operator<(const reg_expression& e)const { return compare(e) < 0; }