diff --git a/include/nlohmann/detail/json_ref.hpp b/include/nlohmann/detail/json_ref.hpp index b9abc47a..f9dba5de 100644 --- a/include/nlohmann/detail/json_ref.hpp +++ b/include/nlohmann/detail/json_ref.hpp @@ -31,10 +31,10 @@ class json_ref {} // class should be movable only - json_ref(json_ref&&) noexcept = default; + json_ref(json_ref&&) = default; json_ref(const json_ref&) = delete; json_ref& operator=(const json_ref&) = delete; - json_ref& operator=(json_ref&&) noexcept = default; + json_ref& operator=(json_ref&&) = delete; ~json_ref() = default; value_type moved_or_copied() const diff --git a/single_include/nlohmann/json.hpp b/single_include/nlohmann/json.hpp index 583eb874..d4422c59 100644 --- a/single_include/nlohmann/json.hpp +++ b/single_include/nlohmann/json.hpp @@ -10375,10 +10375,10 @@ class json_ref {} // class should be movable only - json_ref(json_ref&&) noexcept = default; + json_ref(json_ref&&) = default; json_ref(const json_ref&) = delete; json_ref& operator=(const json_ref&) = delete; - json_ref& operator=(json_ref&&) noexcept = default; + json_ref& operator=(json_ref&&) = delete; ~json_ref() = default; value_type moved_or_copied() const