[libcxx-commits] [libcxx] [libc++] Implement LWG3430 avoid implicit conversion of the source arguments to `std::filesystem::path` when constructing `std::basic_*fstream` (PR #85079)

Jonathan Wakely via libcxx-commits libcxx-commits at lists.llvm.org
Sat Mar 16 11:19:23 PDT 2024


jwakely wrote:


> The accepted resolution avoids the `path` to `string_view` conversion, but doesn't add the `string_view` constructor overload. Based on https://godbolt.org/z/TqoWTxT75 the change would disallow using a `string_view` instead of making its usage more efficient. I wonder whether this change in behaviour is intended, especially since the title suggests differently and the LWG-issue doesn't change Annex C. @jwakely is the change in behaviour intended?

Yes, that was what LWG suggested and LEWG approved.

https://github.com/llvm/llvm-project/pull/85079


More information about the libcxx-commits mailing list