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 {
5151 explicit operator bool () const { return kind_ != Kind::Empty; }
5252
5353 // 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; }
5858
5959 // Throws std::invalid_argument if the type does not match
6060 bool asBool () const ;
You can’t perform that action at this time.
0 commit comments