mirror of
https://github.com/pybind/pybind11.git
synced 2024-11-29 16:37:13 +00:00
SH, history tracking
This commit is contained in:
parent
0337ed944d
commit
f06f0927b3
@ -15,8 +15,16 @@ template <int SerNo>
|
||||
struct Foo {
|
||||
std::string history;
|
||||
Foo(const std::string &history_) : history(history_) {}
|
||||
Foo(const Foo &other) = delete;
|
||||
Foo(Foo &&other) = delete;
|
||||
Foo(const Foo &other) : history(other.history + "_CpCtor") {}
|
||||
Foo(Foo &&other) : history(other.history + "_MvCtor") {}
|
||||
Foo &operator=(const Foo &other) {
|
||||
history = other.history + "_OpEqLv";
|
||||
return *this;
|
||||
}
|
||||
Foo &operator=(Foo &&other) {
|
||||
history = other.history + "_OpEqRv";
|
||||
return *this;
|
||||
}
|
||||
std::string get_history() const { return "Foo" + fooNames[SerNo] + history; }
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user