mirror of
https://github.com/NixOS/nix
synced 2025-06-25 19:01:16 +02:00
Merge pull request #9379 from NixOS/shebang-virtual-dtor
Shebang parser: add virtual destructor
This commit is contained in:
commit
f739fc0729
1 changed files with 2 additions and 0 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue