Skip to content

Commit 5a85b81

Browse files
ya1gauravvprus
authored andcommitted
get_option_name() can throw std::logic_error
get_option_name() calls get_canonical_option_prefix() which throws in file value_semantic.cpp line no 296 296 throw std::logic_error("error_with_option_name::m_option_style can only be " 297 "one of [0, allow_dash_for_short, allow_slash_for_short, " 298 "allow_long_disguise or allow_long]"); 299 }
1 parent 8ca8b39 commit 5a85b81

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/boost/program_options/errors.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ namespace boost { namespace program_options {
169169
virtual void set_option_name(const std::string& option_name)
170170
{ set_substitute("option", option_name);}
171171

172-
std::string get_option_name() const throw()
172+
std::string get_option_name() const
173173
{ return get_canonical_option_name(); }
174174

175175
void set_original_token(const std::string& original_token)

0 commit comments

Comments
 (0)