]> git.ipfire.org Git - thirdparty/gcc.git/commit - libstdc++-v3/include/std/future
Use std::addressof in insert iterators, allocators and promises
authorJonathan Wakely <jwakely@redhat.com>
Thu, 7 Jan 2016 15:01:33 +0000 (15:01 +0000)
committerJonathan Wakely <redi@gcc.gnu.org>
Thu, 7 Jan 2016 15:01:33 +0000 (15:01 +0000)
commitf885fa898fdf8dc53081d584e322f5d9af3491a3
tree30850f33b00dc6cf6fb619896993a9ff8417f621
parent64d3ef31dffb75b1a16837564eac5b613d49cafc
Use std::addressof in insert iterators, allocators and promises

PR libstdc++/69105
PR libstdc++/69106
PR libstdc++/69114
* include/bits/stl_iterator.h (back_insert_iterator,
front_insert_iterator, insert_iterator): Use __addressof (LWG 2324).
* include/bits/uses_allocator.h (__use_alloc): Use __addressof.
* include/std/future (__future::base::_State_baseV2::__setter):
Likewise.
* include/std/scoped_allocator (__outermost): Likewise.
* testsuite/20_util/scoped_allocator/69114.cc: New.
* testsuite/20_util/uses_allocator/69114.cc: New.
* testsuite/30_threads/promise/69106.cc: New.

From-SVN: r232129
libstdc++-v3/ChangeLog
libstdc++-v3/include/bits/stl_iterator.h
libstdc++-v3/include/bits/uses_allocator.h
libstdc++-v3/include/std/future
libstdc++-v3/include/std/scoped_allocator
libstdc++-v3/testsuite/20_util/scoped_allocator/69114.cc [new file with mode: 0644]
libstdc++-v3/testsuite/20_util/uses_allocator/69114.cc [new file with mode: 0644]
libstdc++-v3/testsuite/30_threads/promise/69106.cc [new file with mode: 0644]