mirror of
https://github.com/pybind/pybind11.git
synced 2026-04-20 06:49:25 +00:00
style: clang-tidy: modernize-use-equals-default
This commit is contained in:
committed by
Henry Schreiner
parent
b342c37388
commit
b491b465c7
@@ -19,14 +19,14 @@ struct empty {
|
||||
};
|
||||
|
||||
struct lacking_copy_ctor : public empty<lacking_copy_ctor> {
|
||||
lacking_copy_ctor() {}
|
||||
lacking_copy_ctor() = default;
|
||||
lacking_copy_ctor(const lacking_copy_ctor& other) = delete;
|
||||
};
|
||||
|
||||
template <> lacking_copy_ctor empty<lacking_copy_ctor>::instance_ = {};
|
||||
|
||||
struct lacking_move_ctor : public empty<lacking_move_ctor> {
|
||||
lacking_move_ctor() {}
|
||||
lacking_move_ctor() = default;
|
||||
lacking_move_ctor(const lacking_move_ctor& other) = delete;
|
||||
lacking_move_ctor(lacking_move_ctor&& other) = delete;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user