Skip to content

Commit

Permalink
Lex.Tests: regression_wide: Fixed initialization order
Browse files Browse the repository at this point in the history
> lex/regression_wide.cpp:93:11: warning: field 'constant' will be
> initialized after field 'operation' [-Wreorder]
>         , constant  (L"[0-9]+(\\.[0-9]+)?", ID_CONSTANT)
>           ^
  • Loading branch information
Kojoley committed Aug 25, 2016
1 parent a7927b1 commit 894ea49
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/lex/regression_wide.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -105,9 +105,9 @@ struct mega_tokens : lex::lexer<Lexer>
;
}

lex::token_def<wchar_t, wchar_t> operation;
lex::token_def<wstring_type, wchar_t> identifier;
lex::token_def<double, wchar_t> constant;
lex::token_def<wchar_t, wchar_t> operation;
lex::token_def<wchar_t, wchar_t> bracket;
};

Expand Down

0 comments on commit 894ea49

Please sign in to comment.