[libcxx-commits] [libcxx] [libc++] Have `basic_string` call `basic_string_view`'s assume-valid constructor (PR #105441)
Christopher Di Bella via libcxx-commits
libcxx-commits at lists.llvm.org
Wed Aug 21 09:47:46 PDT 2024
================
@@ -689,6 +689,9 @@ private:
const value_type* __data_;
size_type __size_;
+
+ template<class, class, class>
+ friend class basic_string;
----------------
cjdb wrote:
Ah, that explains one of the diagnostics I was getting! We don't need to include that header though, since the friend declaration doubles as the class declaration (see https://godbolt.org/z/bj1PMh44b). Do you still want me to add it?
https://github.com/llvm/llvm-project/pull/105441
More information about the libcxx-commits
mailing list