mirror of
https://github.com/pybind/pybind11.git
synced 2024-11-29 16:37:13 +00:00
Automatic clang-tidy fixes.
This commit is contained in:
parent
48eb78ae77
commit
10abe15052
@ -171,7 +171,7 @@ struct SharedFromThisRef {
|
||||
struct B : std::enable_shared_from_this<B> {
|
||||
B() { print_created(this); }
|
||||
B(const B &) : std::enable_shared_from_this<B>() { print_copy_created(this); }
|
||||
B(B &&) : std::enable_shared_from_this<B>() { print_move_created(this); }
|
||||
B(B &&) noexcept : std::enable_shared_from_this<B>() { print_move_created(this); }
|
||||
~B() { print_destroyed(this); }
|
||||
};
|
||||
|
||||
|
@ -23,14 +23,14 @@ struct Sft : std::enable_shared_from_this<Sft> {
|
||||
// worth the trouble covering all platforms.
|
||||
Sft(const Sft &other) { history = other.history + "_CpCtor"; }
|
||||
|
||||
Sft(Sft &&other) { history = other.history + "_MvCtor"; }
|
||||
Sft(Sft &&other) noexcept { history = other.history + "_MvCtor"; }
|
||||
|
||||
Sft &operator=(const Sft &other) {
|
||||
history = other.history + "_OpEqLv";
|
||||
return *this;
|
||||
}
|
||||
|
||||
Sft &operator=(Sft &&other) {
|
||||
Sft &operator=(Sft &&other) noexcept {
|
||||
history = other.history + "_OpEqRv";
|
||||
return *this;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user