🚨 fixed some clang-tidy warnings

This commit is contained in:
Niels Lohmann committed 2018-10-07 18:39:18 +02:00
1 parent fa722d5ac3
commit 858e75c4df
29 files changed
+214 -204

No files matched your search

+5 -3
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