Make ElementProxy and MemberProxy non-copyable

This commit is contained in:
Benoit Blanchon
2024-11-25 10:46:21 +01:00
parent 5e7653b36a
commit 57a9c50b38
10 changed files with 105 additions and 63 deletions

View File

@ -67,7 +67,7 @@ TEST_CASE("JsonDocument::containsKey()") {
TEST_CASE("MemberProxy::containsKey()") {
JsonDocument doc;
auto mp = doc["hello"];
const auto& mp = doc["hello"];
SECTION("containsKey(const char*)") {
mp["key"] = "value";