aboutsummaryrefslogtreecommitdiff
path: root/libstdc++-v3/include/std/numeric
diff options
context:
space:
mode:
authorJonathan Wakely <jwakely@redhat.com>2020-02-19 14:41:46 +0000
committerJonathan Wakely <jwakely@redhat.com>2020-02-19 15:28:33 +0000
commit66ae31eb308e5bc90ce6dfd0a67381a0929a6aa0 (patch)
treeb33c676794c3d8adaac4007d12201db29a5b38f9 /libstdc++-v3/include/std/numeric
parent247f410b83797a1840573840cc2a539ef9d7f96b (diff)
downloadgcc-66ae31eb308e5bc90ce6dfd0a67381a0929a6aa0.zip
gcc-66ae31eb308e5bc90ce6dfd0a67381a0929a6aa0.tar.gz
gcc-66ae31eb308e5bc90ce6dfd0a67381a0929a6aa0.tar.bz2
libstdc++: span's deduction-guide for built-in arrays doesn't work (LWG 3369)
The 23_containers/span/deduction.cc test was already passing, but only because I had previously implemented the original proposed resolution of 3255. As pointed out in 3255 that original P/R was incorrect because it broke construction from array xvalues. This reverts the incorrect part of 3255 (and adds tests for the case it broke), and implements the resolution of 3369 instead. * include/std/span (span(T (&)[N])): Use non-deduced context to prevent first parameter from interfering with class template argument deduction (LWG 3369). * testsuite/23_containers/span/deduction.cc: Add missing 'const'. * testsuite/23_containers/span/lwg3255.cc: Check for construction from rvalues.
Diffstat (limited to 'libstdc++-v3/include/std/numeric')
0 files changed, 0 insertions, 0 deletions