[libcxx-commits] [PATCH] D129195: [libc++] Implement P1423R3 (char8_t backward compatibility remediation)
Nikolas Klauser via Phabricator via libcxx-commits
libcxx-commits at lists.llvm.org
Sun Jul 17 11:52:33 PDT 2022
philnik added inline comments.
================
Comment at: libcxx/test/std/input.output/iostream.format/output.streams/ostream/deleted_output_functions.verify.cpp:24
+ s << wchar_t(); // expected-error {{overload resolution selected deleted operator '<<'}}
+ s << std::declval<const wchar_t*>(); // expected-error {{overload resolution selected deleted operator '<<'}}
+#endif
----------------
Mordante wrote:
> Mainly curious, but will `std::declval<wchar_t*>();` be valid? I expect it will.
No it isn't valid. The deleted `const wchar_t*` overload is the best match.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D129195/new/
https://reviews.llvm.org/D129195
More information about the libcxx-commits
mailing list