Skip to content

Commit a495b02

Browse files
committed
Initialize position_key in second basic_option constructor.
1 parent c0cee7f commit a495b02

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

include/boost/program_options/option.hpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ namespace boost { namespace program_options {
3131
basic_option(const std::string& xstring_key,
3232
const std::vector< std::string> &xvalue)
3333
: string_key(xstring_key)
34+
, position_key(-1)
3435
, value(xvalue)
3536
, unregistered(false)
3637
, case_insensitive(false)

0 commit comments

Comments
 (0)