Skip to content

Commit d78a332

Browse files
committed
Merge pull request #19 from acgetchell/patch-1
Add override specifier
2 parents 0722f47 + 8253bfc commit d78a332

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

docopt_private.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ namespace docopt {
9696

9797
virtual bool match(PatternList& left, std::vector<std::shared_ptr<LeafPattern>>& collected) const override;
9898

99-
virtual bool hasValue() const { return static_cast<bool>(fValue); }
99+
virtual bool hasValue() const override { return static_cast<bool>(fValue); }
100100

101101
value const& getValue() const { return fValue; }
102102
void setValue(value&& v) { fValue = std::move(v); }

0 commit comments

Comments
 (0)