Skip to content

Commit

Permalink
added missing virtual destructors
Browse files Browse the repository at this point in the history
  • Loading branch information
Jakz committed Dec 5, 2018
1 parent 6a3f410 commit e89b33d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/code.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ class Value;
class Code
{
public:
virtual ~Code() { }

virtual size_t size() const = 0;
virtual const Instruction& at(size_t i) const = 0;

Expand Down
1 change: 1 addition & 0 deletions src/types/traits.h
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,7 @@ class Iterator /*: public std::iterator<std::input_iterator_tag, Value, ptrdiff_
virtual bool hasNext() const = 0;
virtual void advance() = 0;
virtual Value value() const = 0;
virtual ~Behavior() { }
};

private:
Expand Down

0 comments on commit e89b33d

Please sign in to comment.