aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorJonathan Wakely <jwakely@redhat.com>2020-06-23 10:24:49 +0100
committerGiuliano Belinassi <giuliano.belinassi@usp.br>2020-08-17 13:14:33 -0300
commit16a9221582c314118e3838c20b8e41a01ec48562 (patch)
treed994c6888569cd4d66e75648b5540ebc194d0692 /gcc
parent0b71453f1e7953a488590f3f5b5442e77b15d709 (diff)
downloadgcc-16a9221582c314118e3838c20b8e41a01ec48562.zip
gcc-16a9221582c314118e3838c20b8e41a01ec48562.tar.gz
gcc-16a9221582c314118e3838c20b8e41a01ec48562.tar.bz2
libstdc++: Implement P1972R2 changes to std::variant (PR 95832)
G++ implements P1972R2 since r11-1597-0ca22d027ecc and so we no longer need the P0608R3 special case to prevent narrowing conversions to bool. Since non-GNU compilers don't necessarily implment P1972R2 yet, this may cause a regression for those compilers. There is no feature-test macro we can use to detect it though, so we'll have to live with it. libstdc++-v3/ChangeLog: PR libstdc++/95832 * include/std/variant (__detail::__variant::_Build_FUN): Remove partial specialization to prevent narrowing conversions to bool. * testsuite/20_util/variant/compile.cc: Test non-narrowing conversions to bool. * testsuite/20_util/variant/run.cc: Likewise.
Diffstat (limited to 'gcc')
0 files changed, 0 insertions, 0 deletions