We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 80a0973 commit 1fa6792Copy full SHA for 1fa6792
libcxx/test/std/containers/sequences/vector/vector.cons/exceptions.pass.cpp
@@ -49,13 +49,14 @@ struct ThrowingT {
49
--throw_after_n;
50
}
51
52
- ThrowingT(const ThrowingT&) {
+ ThrowingT(const ThrowingT& rhs) : throw_after_n_{rhs.throw_after_n_} {
53
if (throw_after_n_ == nullptr || *throw_after_n_ == 0)
54
throw 1;
55
--*throw_after_n_;
56
57
58
- ThrowingT& operator=(const ThrowingT&) {
+ ThrowingT& operator=(const ThrowingT& rhs) {
59
+ throw_after_n_ = rhs.throw_after_n_;
60
61
62
0 commit comments