diff options
Diffstat (limited to 'src/tests/common/unique_function.cpp')
| -rw-r--r-- | src/tests/common/unique_function.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/tests/common/unique_function.cpp b/src/tests/common/unique_function.cpp index ac9912738..aa6e86593 100644 --- a/src/tests/common/unique_function.cpp +++ b/src/tests/common/unique_function.cpp | |||
| @@ -17,10 +17,12 @@ struct Noisy { | |||
| 17 | Noisy& operator=(Noisy&& rhs) noexcept { | 17 | Noisy& operator=(Noisy&& rhs) noexcept { |
| 18 | state = "Move assigned"; | 18 | state = "Move assigned"; |
| 19 | rhs.state = "Moved away"; | 19 | rhs.state = "Moved away"; |
| 20 | return *this; | ||
| 20 | } | 21 | } |
| 21 | Noisy(const Noisy&) : state{"Copied constructed"} {} | 22 | Noisy(const Noisy&) : state{"Copied constructed"} {} |
| 22 | Noisy& operator=(const Noisy&) { | 23 | Noisy& operator=(const Noisy&) { |
| 23 | state = "Copied assigned"; | 24 | state = "Copied assigned"; |
| 25 | return *this; | ||
| 24 | } | 26 | } |
| 25 | 27 | ||
| 26 | std::string state; | 28 | std::string state; |