File tree Expand file tree Collapse file tree 2 files changed +7
-7
lines changed
include/boost/program_options/detail Expand file tree Collapse file tree 2 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -82,7 +82,7 @@ namespace boost { namespace program_options { namespace detail {
82
82
83
83
void get ();
84
84
85
- #if BOOST_WORKAROUND(_MSC_VER, <= 1800 )
85
+ #if BOOST_WORKAROUND(_MSC_VER, <= 1900 )
86
86
void decrement () {}
87
87
void advance (difference_type) {}
88
88
#endif
Original file line number Diff line number Diff line change @@ -126,9 +126,9 @@ void test_cmdline(const char* syntax,
126
126
try {
127
127
vector<option> options = cmd.run ();
128
128
129
- for (unsigned i = 0 ; i < options.size (); ++i )
129
+ for (unsigned j = 0 ; j < options.size (); ++j )
130
130
{
131
- option opt = options[i ];
131
+ option opt = options[j ];
132
132
133
133
if (opt.position_key != -1 ) {
134
134
if (!result.empty ())
@@ -138,18 +138,18 @@ void test_cmdline(const char* syntax,
138
138
if (!result.empty ())
139
139
result += " " ;
140
140
result += opt.string_key + " :" ;
141
- for (size_t j = 0 ; j < opt.value .size (); ++j ) {
142
- if (j != 0 )
141
+ for (size_t k = 0 ; k < opt.value .size (); ++k ) {
142
+ if (k != 0 )
143
143
result += " -" ;
144
144
result += opt.value [j];
145
145
}
146
146
}
147
147
}
148
148
}
149
- catch (unknown_option& e ) {
149
+ catch (unknown_option&) {
150
150
status = s_unknown_option;
151
151
}
152
- catch (ambiguous_option& e ) {
152
+ catch (ambiguous_option&) {
153
153
status = s_ambiguous_option;
154
154
}
155
155
catch (invalid_command_line_syntax& e) {
You can’t perform that action at this time.
0 commit comments