🔨 trying to fix the leak
Part 1: properly use forwarding
This commit is contained in:
parent
38345fd06c
commit
97559bb1b2
3 changed files with 8 additions and 8 deletions
|
@ -1130,7 +1130,7 @@ scan_number_done:
|
|||
}
|
||||
|
||||
/// return current string value (implicitly resets the token; useful only once)
|
||||
std::string move_string()
|
||||
std::string&& move_string()
|
||||
{
|
||||
return std::move(token_buffer);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue