aboutsummaryrefslogtreecommitdiff
path: root/gcc/tree.c
diff options
context:
space:
mode:
authorPatrick Palka <ppalka@redhat.com>2021-05-18 00:28:44 -0400
committerPatrick Palka <ppalka@redhat.com>2021-05-18 00:28:44 -0400
commitfe993b469c528230d9a01e1ae2208610f960dd9f (patch)
treeda6f0ea5b3480b0632dfa72e05d4011a57d4ea69 /gcc/tree.c
parent03cf8d54e5c27cfe6b184cc96757cab30d8fa1df (diff)
downloadgcc-fe993b469c528230d9a01e1ae2208610f960dd9f.zip
gcc-fe993b469c528230d9a01e1ae2208610f960dd9f.tar.gz
gcc-fe993b469c528230d9a01e1ae2208610f960dd9f.tar.bz2
libstdc++: Fix up semiregular-box partial specialization [PR100475]
This makes the in-place constructor of our partial specialization of __box for already-semiregular types perform direct-non-list-initialization (in accordance with the specification of the primary template), and additionally makes the member function data() use std::__addressof. libstdc++-v3/ChangeLog: PR libstdc++/100475 * include/std/ranges (__box::__box): Use non-list-initialization in member initializer list of in-place constructor of the partial specialization for semiregular types. (__box::operator->): Use std::__addressof. * testsuite/std/ranges/adaptors/detail/semiregular_box.cc (test02): New test. * testsuite/std/ranges/single_view.cc (test04): New test.
Diffstat (limited to 'gcc/tree.c')
0 files changed, 0 insertions, 0 deletions