aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorJonathan Wakely <jwakely@redhat.com>2020-06-23 10:24:49 +0100
committerJonathan Wakely <jwakely@redhat.com>2020-06-23 10:25:26 +0100
commitc98fc4eb3afeda6ad8220d0d79bc1247a92c7c65 (patch)
treea112fb75a18904fd747a38a883d0ac28556b099f /gcc
parenta2c5150e401a9c084f88b2d5576b29ef709dbadb (diff)
downloadgcc-c98fc4eb3afeda6ad8220d0d79bc1247a92c7c65.zip
gcc-c98fc4eb3afeda6ad8220d0d79bc1247a92c7c65.tar.gz
gcc-c98fc4eb3afeda6ad8220d0d79bc1247a92c7c65.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