[all-commits] [llvm/llvm-project] 5d73c7: [libc++] Re-introduce special support for narrowin...
bgra8 via All-commits
all-commits at lists.llvm.org
Wed Nov 22 11:41:27 PST 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 5d73c7d1af78379827759dfb57887246e47a503e
https://github.com/llvm/llvm-project/commit/5d73c7d1af78379827759dfb57887246e47a503e
Author: bgra8 <32298056+bgra8 at users.noreply.github.com>
Date: 2023-11-22 (Wed, 22 Nov 2023)
Changed paths:
M libcxx/docs/ReleaseNotes/18.rst
M libcxx/include/variant
M libcxx/test/std/utilities/variant/variant.variant/variant.assign/T.pass.cpp
M libcxx/test/std/utilities/variant/variant.variant/variant.assign/conv.pass.cpp
M libcxx/test/std/utilities/variant/variant.variant/variant.ctor/T.pass.cpp
M libcxx/test/std/utilities/variant/variant.variant/variant.ctor/conv.pass.cpp
M libcxx/test/support/variant_test_helpers.h
Log Message:
-----------
[libc++] Re-introduce special support for narrowing conversions to bool in variant (#73121)
This patch re-introduces special support for narrowing conversions to
bool
in std::variant, which was removed in 170810fca6ee in order to make
libc++
Standards-conforming.
The special support is gated by the
`_LIBCPP_ENABLE_NARROWING_CONVERSIONS_IN_VARIANT`
macro and will be supported for LLVM 18 only as a courtesy to help large
code bases migrate over to the Standard behavior.
---------
Co-authored-by: Bogdan Graur <bgraur at google.com>
Co-authored-by: Louis Dionne <ldionne.2 at gmail.com>
More information about the All-commits
mailing list