Skip to content

Commit

Permalink
Make Range destructor virtual.
Browse files Browse the repository at this point in the history
This quiets the following compiler warning:

   warning: destructor called on non-final 'Interval' that has virtual functions but non-virtual destructor
  • Loading branch information
sruffell authored and lauft committed Nov 30, 2018
1 parent c598f2b commit 0a766bb
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/Range.h
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ class Range
{
public:
Range () = default;
virtual ~Range() = default;
Range (const Datetime&, const Datetime&);
bool operator== (const Range&) const;
bool operator!= (const Range&) const;
Expand Down

0 comments on commit 0a766bb

Please sign in to comment.