mirror of
https://github.com/nlohmann/json.git
synced 2026-07-19 00:44:54 +00:00
🔨 trying to fix the leak
Part 1: properly use forwarding
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user