Index: boost/regex/v4/basic_regex.hpp =================================================================== --- boost/regex/v4/basic_regex.hpp (revision 53220) +++ boost/regex/v4/basic_regex.hpp (working copy) @@ -69,6 +69,7 @@ { public: virtual int get_id(const charT* i, const charT* j) = 0; + virtual ~named_subexpressions_base() {} }; template