Speculatively implement LWG-3867 (#3367)

Co-authored-by: Stephan T. Lavavej <stl@nuwen.net>
This commit is contained in:
Casey Carter 2023-02-02 16:44:34 -08:00 коммит произвёл GitHub
Родитель 0150312f37
Коммит c1c1be47a2
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
2 изменённых файлов: 1 добавлений и 3 удалений

Просмотреть файл

@ -346,7 +346,7 @@ public:
~basic_osyncstream() = default;
basic_osyncstream& operator=(basic_osyncstream&&) noexcept = default;
basic_osyncstream& operator=(basic_osyncstream&&) = default; // per LWG-3867
void emit() {
ios_base::iostate _State = ios_base::goodbit;

Просмотреть файл

@ -389,8 +389,6 @@ static_assert(is_nothrow_swappable_v<wstringstream>);
static_assert(is_nothrow_swappable_v<syncbuf>);
static_assert(is_nothrow_swappable_v<wsyncbuf>);
// TRANSITION, GH-3355: "<syncstream>: is_nothrow_move_assignable_v<osyncstream> is squirrelly"
static_assert(has_nothrow_rdbuf<osyncstream>); // mandatory
static_assert(has_nothrow_rdbuf<wosyncstream>); // mandatory
#endif // _HAS_CXX20