Skip to content

Commit

Permalink
Fix compilation: add virtual destructor to class Type
Browse files Browse the repository at this point in the history
  • Loading branch information
kornilova203 committed Jan 29, 2019
1 parent 776c2f5 commit 3a6a280
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions bindgen/ir/types/Type.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,9 @@ struct CycleNode {
*/
class Type : public std::enable_shared_from_this<Type> {
public:

virtual ~Type() = default;

virtual std::string str(const LocationManager &locationManager) const = 0;

/**
Expand Down

0 comments on commit 3a6a280

Please sign in to comment.