🔨 trying to fix the leak

Part 1: properly use forwarding
This commit is contained in:
Niels Lohmann 2018-03-08 07:36:56 +01:00
parent 38345fd06c
commit 97559bb1b2
No known key found for this signature in database
GPG key ID: 7F3CEA63AE251B69
3 changed files with 8 additions and 8 deletions

View file

@ -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);
}