We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d9ef385 commit fcee593Copy full SHA for fcee593
src/parsers.cpp
@@ -152,7 +152,16 @@ namespace boost { namespace program_options {
152
{
153
boost::throw_exception(reading_file(filename));
154
}
155
- return parse_config_file(strm, desc, allow_unregistered);
+
156
+ basic_parsed_options<charT> result
157
+ = parse_config_file(strm, desc, allow_unregistered);
158
159
+ if (strm.bad())
160
+ {
161
+ boost::throw_exception(reading_file(filename));
162
+ }
163
164
+ return result;
165
166
167
template
0 commit comments