From 47f59620744fb67bdb71ed23fc712c0762d1e093 Mon Sep 17 00:00:00 2001 From: MonkeybreadSoftware Date: Mon, 16 Oct 2023 08:52:06 +0200 Subject: [PATCH] Update json_object.hpp Fixed a shadow variable warning for value variable. --- include/jsoncons/json_object.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/jsoncons/json_object.hpp b/include/jsoncons/json_object.hpp index 37889c2a63..b3c3436706 100644 --- a/include/jsoncons/json_object.hpp +++ b/include/jsoncons/json_object.hpp @@ -180,9 +180,9 @@ namespace jsoncons { } template - void value(T&& value) + void value(T&& newValue) { - value_ = std::forward(value); + value_ = std::forward(newValue); } void swap(key_value& member) noexcept