diff --git a/include/nlohmann/json.hpp b/include/nlohmann/json.hpp index 01b716d06..bc73e1631 100644 --- a/include/nlohmann/json.hpp +++ b/include/nlohmann/json.hpp @@ -1204,7 +1204,7 @@ class basic_json // NOLINT(cppcoreguidelines-special-member-functions,hicpp-spec /// @brief move constructor /// @sa https://json.nlohmann.me/api/basic_json/basic_json/ basic_json(basic_json&& other) noexcept - : json_base_class_t(std::move(other)), + : json_base_class_t(static_cast < json_base_class_t&& > (other)), m_type(std::move(other.m_type)), m_value(std::move(other.m_value)) {