Skip to content

Commit 8253bfc

Browse files
committed
Add override specifier
Make AppleClang 7.0 warning go away
1 parent 0722f47 commit 8253bfc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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)