aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorJonathan Wakely <jwakely@redhat.com>2020-02-19 17:04:07 +0000
committerJonathan Wakely <jwakely@redhat.com>2020-02-19 21:21:06 +0000
commit77f5310f0205714538668b88fbf1de44f1f435be (patch)
tree36dc532e0fe7a20db16d3a553ba6881b19312053 /gcc
parent59aa9e577eb2b182374f5421828687c93b81ad3d (diff)
downloadgcc-77f5310f0205714538668b88fbf1de44f1f435be.zip
gcc-77f5310f0205714538668b88fbf1de44f1f435be.tar.gz
gcc-77f5310f0205714538668b88fbf1de44f1f435be.tar.bz2
libstdc++: subrange converting constructor should disallow slicing (LWG 3282)
* include/std/ranges (__detail::__convertible_to_non_slicing): New helper concept. (__detail::__pair_like_convertible_to): Remove. (__detail::__pair_like_convertible_from): Add requirements for non-slicing conversions. (subrange): Constrain constructors with __convertible_to_non_slicing. Remove constructors from pair-like types. Add new deduction guide. * testsuite/std/ranges/subrange/lwg3282_neg.cc: New test.
Diffstat (limited to 'gcc')
0 files changed, 0 insertions, 0 deletions