Skip to content

Commit c1c1be4

Browse files
Speculatively implement LWG-3867 (#3367)
Co-authored-by: Stephan T. Lavavej <[email protected]>
1 parent 0150312 commit c1c1be4

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

stl/inc/syncstream

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -346,7 +346,7 @@ public:
346346

347347
~basic_osyncstream() = default;
348348

349-
basic_osyncstream& operator=(basic_osyncstream&&) noexcept = default;
349+
basic_osyncstream& operator=(basic_osyncstream&&) = default; // per LWG-3867
350350

351351
void emit() {
352352
ios_base::iostate _State = ios_base::goodbit;

tests/std/tests/GH_001858_iostream_exception/test.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -389,8 +389,6 @@ static_assert(is_nothrow_swappable_v<wstringstream>);
389389
static_assert(is_nothrow_swappable_v<syncbuf>);
390390
static_assert(is_nothrow_swappable_v<wsyncbuf>);
391391

392-
// TRANSITION, GH-3355: "<syncstream>: is_nothrow_move_assignable_v<osyncstream> is squirrelly"
393-
394392
static_assert(has_nothrow_rdbuf<osyncstream>); // mandatory
395393
static_assert(has_nothrow_rdbuf<wosyncstream>); // mandatory
396394
#endif // _HAS_CXX20

0 commit comments

Comments
 (0)