🔨 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
3 changed files with 8 additions and 8 deletions
+1 -1
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);
}