list.tcc (list::operator=(const list&), [...]): Use __addressof instead of operator&.
authorJonathan Wakely <jwakely@redhat.com>
Tue, 16 Jun 2015 21:04:53 +0000 (22:04 +0100)
committerJonathan Wakely <redi@gcc.gnu.org>
Tue, 16 Jun 2015 21:04:53 +0000 (22:04 +0100)
commit200fcd339802e67a444ba78dd941eebe8fd8e1f5
tree89080d583c5abe32c49745438079e3ab79e37c19
parentba394ca69b1444dd743bcea7c5c0825837cc108e
list.tcc (list::operator=(const list&), [...]): Use __addressof instead of operator&.

* include/bits/list.tcc (list::operator=(const list&), list::merge):
Use __addressof instead of operator&.
(list::sort): Use array-to-pointer decay instead of operator&.
* include/bits/stl_list.h (list::splice): Use __addressof instead of
operator&.
* include/debug/formatter.h (_Error_formatter::_Parameter::_Parameter):
Likewise.
* include/debug/functions.h (__check_singular): Likewise.
* include/debug/list (list::splice, list::merge): Likewise.
* testsuite/23_containers/list/modifiers/addressof.cc: New.

From-SVN: r224539
libstdc++-v3/ChangeLog
libstdc++-v3/include/bits/list.tcc
libstdc++-v3/include/bits/stl_list.h
libstdc++-v3/include/debug/formatter.h
libstdc++-v3/include/debug/functions.h
libstdc++-v3/include/debug/list
libstdc++-v3/testsuite/23_containers/list/modifiers/addressof.cc [new file with mode: 0644]