Skip to content

Commit

Permalink
Update json_object.hpp
Browse files Browse the repository at this point in the history
Fixed a shadow variable warning for value variable.
  • Loading branch information
MonkeybreadSoftware authored Oct 16, 2023
1 parent 5166bc3 commit 47f5962
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions include/jsoncons/json_object.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -180,9 +180,9 @@ namespace jsoncons {
}

template <class T>
void value(T&& value)
void value(T&& newValue)
{
value_ = std::forward<T>(value);
value_ = std::forward<T>(newValue);
}

void swap(key_value& member) noexcept
Expand Down

0 comments on commit 47f5962

Please sign in to comment.