[libcxx-commits] [PATCH] D153427: [libc++] Add noexcept clauses to swap per P0408R7 (Efficient Access to basic_stringbuf's Buffer)
Piotr Fusik via Phabricator via libcxx-commits
libcxx-commits at lists.llvm.org
Sat Jun 24 06:24:24 PDT 2023
pfusik marked an inline comment as done.
pfusik added inline comments.
================
Comment at: libcxx/test/std/input.output/string.streams/stringbuf/stringbuf.assign/member_swap_noexcept.pass.cpp:92
+ std::basic_stringbuf<CharT, std::char_traits<CharT>, test_alloc_propagate_on_container_swap_not_empty<CharT>> buf;
+ static_assert(noexcept(buf.swap(buf1)));
+ }
----------------
Mordante wrote:
> Can you add some test where `noexcept(buf.swap(buf1)) == false`.
See five lines up.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D153427/new/
https://reviews.llvm.org/D153427
More information about the libcxx-commits
mailing list