Unverified Commit 5d73c7d1 authored by bgra8's avatar bgra8 Committed by GitHub
Browse files

[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 170810fc

 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: default avatarBogdan Graur <bgraur@google.com>
Co-authored-by: default avatarLouis Dionne <ldionne.2@gmail.com>
parent 12bcd633
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment