File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -51,10 +51,10 @@ namespace docopt {
51
51
explicit operator bool () const { return kind_ != Kind::Empty; }
52
52
53
53
// Test the type contained by this value object
54
- bool isBool () const { return kind_==Kind::Bool; }
55
- bool isString () const { return kind_==Kind::String; }
56
- bool isLong () const { return kind_==Kind::Long; }
57
- bool isStringList () const { return kind_==Kind::StringList; }
54
+ bool isBool () const noexcept { return kind_==Kind::Bool; }
55
+ bool isString () const noexcept { return kind_==Kind::String; }
56
+ bool isLong () const noexcept { return kind_==Kind::Long; }
57
+ bool isStringList () const noexcept { return kind_==Kind::StringList; }
58
58
59
59
// Throws std::invalid_argument if the type does not match
60
60
bool asBool () const ;
You can’t perform that action at this time.
0 commit comments