From 3ee30f23fffe7ab55afca909437ceeb15ef66c2e Mon Sep 17 00:00:00 2001 From: MistEO Date: Sun, 25 Feb 2024 00:02:27 +0800 Subject: [PATCH] fix: wrong std::move of meojson --- 3rdparty/include/meojson/common/value.hpp | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/3rdparty/include/meojson/common/value.hpp b/3rdparty/include/meojson/common/value.hpp index ebc8ce17d1..cd3ba02ef5 100644 --- a/3rdparty/include/meojson/common/value.hpp +++ b/3rdparty/include/meojson/common/value.hpp @@ -170,14 +170,9 @@ public: basic_value& operator=(const basic_value& rhs); basic_value& operator=(basic_value&&) noexcept; template >, bool> = true> - basic_value& operator=(const value_t& rhs) - { - return *this = basic_value(rhs); - } - template >, bool> = true> basic_value& operator=(value_t&& rhs) { - return *this = basic_value(std::move(rhs)); + return *this = basic_value(std::forward(rhs)); } bool operator==(const basic_value& rhs) const;