Merge pull request #9379 from NixOS/shebang-virtual-dtor

Shebang parser: add virtual destructor
This commit is contained in:
John Ericson 2023-11-19 00:05:34 -05:00 committed by GitHub
commit f739fc0729
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -97,6 +97,8 @@ struct Parser {
virtual void operator()(std::shared_ptr<Parser> & state, Strings & r) = 0;
Parser(std::string_view s) : remaining(s) {};
virtual ~Parser() { };
};
struct ParseQuoted : public Parser {