mirror of
https://github.com/nlohmann/json.git
synced 2025-07-10 22:00:59 +03:00
⚡ avoid copying a string
This commit is contained in:
@ -12477,7 +12477,7 @@ basic_json_parser_74:
|
||||
// the valid JSON Patch operations
|
||||
enum class patch_operations {add, remove, replace, move, copy, test, invalid};
|
||||
|
||||
const auto get_op = [](const std::string op)
|
||||
const auto get_op = [](const std::string & op)
|
||||
{
|
||||
if (op == "add")
|
||||
{
|
||||
|
Reference in New Issue
Block a user