We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f06f092 commit a428f57Copy full SHA for a428f57
tests/test_class_sh_shared_ptr_copy_move.cpp
@@ -16,12 +16,12 @@ struct Foo {
16
std::string history;
17
Foo(const std::string &history_) : history(history_) {}
18
Foo(const Foo &other) : history(other.history + "_CpCtor") {}
19
- Foo(Foo &&other) : history(other.history + "_MvCtor") {}
+ Foo(Foo &&other) noexcept : history(other.history + "_MvCtor") {}
20
Foo &operator=(const Foo &other) {
21
history = other.history + "_OpEqLv";
22
return *this;
23
}
24
- Foo &operator=(Foo &&other) {
+ Foo &operator=(Foo &&other) noexcept {
25
history = other.history + "_OpEqRv";
26
27
0 commit comments