sourcemeta / jsontoolkit

A swiss-army knife for expressive JSON programming in modern C++. Covers JSON, JSON Pointer, JSONL, and JSON Schema
https://jsontoolkit.sourcemeta.com/
Other
38 stars 3 forks source link

refactor(jsonschema/uri): remove useless std::move #1242

Closed tony-go closed 1 month ago

tony-go commented 1 month ago

According to clang tidy:

/Users/tonygo/oss/jsontoolkit/src/evaluator/context.cc:74:33: error: std::move of the variable 'new_instance' of 
the trivially-copyable type 'std::reference_wrapper<const JSON>' has no effect; remove std::move() 
[performance-move-const-arg,-warnings-as-errors]