Merge pull request #7681 from layus/virtual-destructor-warning

Fix 'destructor called on non-final ...' warning
This commit is contained in:
Théophane Hufschmitt 2023-01-24 21:57:24 +01:00 committed by GitHub
commit 189261c344
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -74,6 +74,8 @@ struct AbstractPos
virtual void print(std::ostream & out) const = 0;
std::optional<LinesOfCode> getCodeLines() const;
virtual ~AbstractPos() = default;
};
std::ostream & operator << (std::ostream & str, const AbstractPos & pos);