Avoid aggregate initialization syntax in places where C++11 doesn't allow it
This commit is contained in:
parent
56ecc8b602
commit
e932d09908
3 changed files with 15 additions and 14 deletions
|
|
@ -93,7 +93,8 @@ Metadata Metadata::main_token(const Rule &rule) {
|
|||
|
||||
Metadata Metadata::alias(string &&value, bool is_named, const Rule &rule) {
|
||||
MetadataParams params;
|
||||
params.alias = {move(value), is_named};
|
||||
params.alias.value = move(value);
|
||||
params.alias.is_named = is_named;
|
||||
return Metadata{rule, params};
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue