A high-performance C++ regex library and lexical analyzer generator with Unicode support. Extends Flex++ with Unicode support, indent/dedent anchors, lazy quantifiers, functions for lex and syntax error reporting and more. Seamlessly integrates with Bison and other parsers.
I just noticed that the reflex::Matcher class has virtual methods, but no virtual destructor. This is problematic when instances of classes derived from Matcher are deleted though a Matcher* pointer (specifically, w/o a virtual destructor this is undefined behavior)
I just noticed that the
reflex::Matcher
class has virtual methods, but no virtual destructor. This is problematic when instances of classes derived from Matcher are deleted though aMatcher*
pointer (specifically, w/o a virtual destructor this is undefined behavior)The fix is trivial: