Bugfix Library: forward initialiser properly into GenNode
...to avoid unnecessary copy. Especially relevant for initialising a sub-Record from the object builder syntay "MakeRec()"
This commit is contained in:
parent
5f9b8eb18c
commit
198dcc622a
1 changed files with 1 additions and 1 deletions
|
|
@ -844,7 +844,7 @@ namespace diff{
|
|||
inline GenNode
|
||||
Rec::buildAttribute (string const& key, X&& payload)
|
||||
{
|
||||
return GenNode(key, payload);
|
||||
return GenNode(key, std::forward<X>(payload));
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue