@@ -162,7 +162,7 @@ class CommandLineOptionsParser {
162
162
163
163
std::visit (overloaded{
164
164
// integral value matcher including bool
165
- [&data, &idx, argv, &commandLineOption](std::integral auto OptValueType::*arg) {
165
+ [&data, &idx, argv, &commandLineOption](std::integral auto OptValueType::* arg) {
166
166
using IntType = std::remove_reference_t <decltype (data.*arg)>;
167
167
if constexpr (std::is_same_v<IntType, bool >) {
168
168
data.*arg = true ;
@@ -180,7 +180,7 @@ class CommandLineOptionsParser {
180
180
},
181
181
182
182
// CommandLineOptionalInt32 value matcher
183
- [&data, &idx, argv](CommandLineOptionalInt32 OptValueType::*arg) {
183
+ [&data, &idx, argv](CommandLineOptionalInt32 OptValueType::* arg) {
184
184
data.*arg = CommandLineOptionalInt32 (CommandLineOptionalInt32::State::kOptionPresent );
185
185
if (idx + 1U < argv.size ()) {
186
186
std::string_view opt (argv[idx + 1 ]);
@@ -192,7 +192,7 @@ class CommandLineOptionsParser {
192
192
},
193
193
194
194
// std::string_view value matcher
195
- [&data, &idx, argv, &commandLineOption](std::string_view OptValueType::*arg) {
195
+ [&data, &idx, argv, &commandLineOption](std::string_view OptValueType::* arg) {
196
196
if (idx + 1U < argv.size ()) {
197
197
data.*arg = std::string_view (argv[++idx]);
198
198
return ;
@@ -201,7 +201,7 @@ class CommandLineOptionsParser {
201
201
},
202
202
203
203
// optional std::string_view value matcher
204
- [this , &data, &idx, argv](std::optional<std::string_view> OptValueType::*arg) {
204
+ [this , &data, &idx, argv](std::optional<std::string_view> OptValueType::* arg) {
205
205
if (idx + 1U < argv.size () && this ->isOptionValue (argv[idx + 1 ])) {
206
206
data.*arg = std::string_view (argv[idx + 1 ]);
207
207
++idx;
@@ -211,7 +211,7 @@ class CommandLineOptionsParser {
211
211
},
212
212
213
213
// duration value matcher
214
- [&data, &idx, argv, &commandLineOption](Duration OptValueType::*arg) {
214
+ [&data, &idx, argv, &commandLineOption](Duration OptValueType::* arg) {
215
215
if (idx + 1U < argv.size ()) {
216
216
data.*arg = ParseDuration (argv[++idx]);
217
217
return ;
0 commit comments