aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorJonathan Wakely <jwakely@redhat.com>2021-07-22 14:37:24 +0100
committerJonathan Wakely <jwakely@redhat.com>2021-07-22 14:37:24 +0100
commitaca7a0253d6e3116f846ad530b19d89644a64267 (patch)
tree2e2e332d47bdb07ccd85e8b339c1652122086e3c /gcc
parentc22bcfd2f7dc9bb5ad394720f4a612327dc898ba (diff)
downloadgcc-aca7a0253d6e3116f846ad530b19d89644a64267.zip
gcc-aca7a0253d6e3116f846ad530b19d89644a64267.tar.gz
gcc-aca7a0253d6e3116f846ad530b19d89644a64267.tar.bz2
libstdc++: Use std::addressof in ranges::uninitialized_xxx [PR101571]
Make the ranges::uninitialized_xxx algorithms use std::addressof to protect against iterator types that overload operator&. Signed-off-by: Jonathan Wakely <jwakely@redhat.com> libstdc++-v3/ChangeLog: PR libstdc++/101571 * include/bits/ranges_uninitialized.h (_DestroyGuard): Change constructor parameter to reference and use addressof. * testsuite/util/testsuite_iterators.h: Define deleted operator& overloads for test iterators.
Diffstat (limited to 'gcc')
0 files changed, 0 insertions, 0 deletions