SH, history tracking

This commit is contained in:
Jakob Lykke Andersen 2021-06-24 14:13:28 +02:00 committed by Ralf W. Grosse-Kunstleve
parent 0337ed944d
commit f06f0927b3

View File

@ -15,8 +15,16 @@ template <int SerNo>
struct Foo { struct Foo {
std::string history; std::string history;
Foo(const std::string &history_) : history(history_) {} Foo(const std::string &history_) : history(history_) {}
Foo(const Foo &other) = delete; Foo(const Foo &other) : history(other.history + "_CpCtor") {}
Foo(Foo &&other) = delete; 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; } std::string get_history() const { return "Foo" + fooNames[SerNo] + history; }
}; };