🚨 fixed some clang-tidy warnings

This commit is contained in:
Niels Lohmann 2018-10-07 18:39:18 +02:00
parent fa722d5ac3
commit 858e75c4df
No known key found for this signature in database
GPG key ID: 7F3CEA63AE251B69
29 changed files with 214 additions and 204 deletions

View file

@ -31,9 +31,11 @@ class json_ref
{}
// class should be movable only
json_ref(json_ref&&) = default;
json_ref(json_ref&&) noexcept = default;
json_ref(const json_ref&) = delete;
json_ref& operator=(const json_ref&) = delete;
json_ref& operator=(json_ref&&) noexcept = default;
~json_ref() = default;
value_type moved_or_copied() const
{
@ -59,5 +61,5 @@ class json_ref
value_type* value_ref = nullptr;
const bool is_rvalue;
};
}
}
} // namespace detail
} // namespace nlohmann