aboutsummaryrefslogtreecommitdiff
path: root/gcc/tree-vect-loop-manip.c
diff options
context:
space:
mode:
authorJonathan Wakely <jwakely@redhat.com>2019-05-16 21:30:35 +0100
committerJonathan Wakely <redi@gcc.gnu.org>2019-05-16 21:30:35 +0100
commitd069df01eda5094cb2c934a7e1567219ba36e511 (patch)
tree7ff15df0c3b8141371e384465d6b7d8ea68ce04f /gcc/tree-vect-loop-manip.c
parentb62dcd16aa033968075f19631c757bb39a16ef92 (diff)
downloadgcc-d069df01eda5094cb2c934a7e1567219ba36e511.zip
gcc-d069df01eda5094cb2c934a7e1567219ba36e511.tar.gz
gcc-d069df01eda5094cb2c934a7e1567219ba36e511.tar.bz2
Implement sane variant converting constructor (P0608R3)
* include/std/variant (__overload_set): Remove. (_Arr): New helper. (_Build_FUN): New class template to define a single FUN overload, with specializations to prevent unwanted conversions, as per P0608R3. (_Build_FUNs): New class template to build an overload set of FUN. (_FUN_type): New alias template to perform overload resolution. (__accepted_type): Use integer_constant base for failure case. Use _FUN_type for successful case. (variant::__accepted_index): Use _Tp instead of _Tp&&. (variant::variant(_Tp&&)): Likewise. (variant::operator=(_Tp&&)): Likewise. From-SVN: r271296
Diffstat (limited to 'gcc/tree-vect-loop-manip.c')
0 files changed, 0 insertions, 0 deletions