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 c680eb7 commit 5fdeb86Copy full SHA for 5fdeb86
libcxx/test/std/ranges/range.adaptors/range.concat/iterator/ctor.pass.cpp
@@ -74,7 +74,7 @@ struct ThrowOnCopyView : std::ranges::view_base {
74
constexpr ThrowOnCopyView(ThrowOnCopyView&&) = default;
75
constexpr ThrowOnCopyView(const ThrowOnCopyView&) { throw 42; };
76
constexpr ThrowOnCopyView& operator=(ThrowOnCopyView&&) = default;
77
- constexpr ThrowOnCopyView& operator=(const ThrowOnCopyView&) { throw 42; };
+ constexpr ThrowOnCopyView& operator=(const ThrowOnCopyView&) { throw 42; return *this;};
78
constexpr int* begin() const { return ptr_ + start_; }
79
constexpr int* end() const { return ptr_ + 8; }
80
};
0 commit comments