[libcxx-commits] [PATCH] D153709: [libc++] Implement stringbuf members of P0408R7 (Efficient Access to basic_stringbuf's Buffer)
Hans Wennborg via Phabricator via libcxx-commits
libcxx-commits at lists.llvm.org
Tue Jul 11 02:03:04 PDT 2023
hans added inline comments.
================
Comment at: libcxx/include/sstream:337
+#else
+ _LIBCPP_HIDE_FROM_ABI string_type str() const & { return str(__str_.get_allocator()); }
+
----------------
This is causing link errors for us on Windows. (https://crbug.com/1463881)
The problem is that `sstream` has an explicit instantiation declaration of `basic_stringbuf<char>` in the `sstream` header, but when compiling the instantiation in `ios.instantiations.cpp`, `_LIBCPP_BUILDING_LIBRARY` is defined and so this `string_type str() const &` member function doesn't get defined.
(Apologies for the late report; we were blocked on https://reviews.llvm.org/D151953#4472195 until yesterday.)
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D153709/new/
https://reviews.llvm.org/D153709
More information about the libcxx-commits
mailing list