diff --git a/include/boost/regex.hpp b/include/boost/regex.hpp index 9b92f173..b163f5a8 100644 --- a/include/boost/regex.hpp +++ b/include/boost/regex.hpp @@ -527,11 +527,11 @@ public: template explicit reg_expression(const std::basic_string& p, flag_type f = regbase::normal, const Allocator& a = Allocator()) - : data(a), pkmp(0) { set_expression(p, f | regbase::use_except); } + : data(a), pkmp(0), error_code_(REG_EMPTY), _expression(0) { set_expression(p, f | regbase::use_except); } template reg_expression(I first, I last, flag_type f = regbase::normal, const Allocator& al = Allocator()) - : data(al), pkmp(0) + : data(al), pkmp(0), error_code_(REG_EMPTY), _expression(0) { size_type len = last-first; scoped_array a(new charT[len]);