Fix clang-tidy-15 warning about use after move

This commit is contained in:
barcode 2022-06-28 13:27:46 +02:00
parent 79a70562d5
commit c427a52274

View File

@ -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))
{