diff options
author | Paolo Carlini <paolo.carlini@oracle.com> | 2010-09-16 17:09:10 +0000 |
---|---|---|
committer | Paolo Carlini <paolo@gcc.gnu.org> | 2010-09-16 17:09:10 +0000 |
commit | 5ee996a2c62317d11b9ef0df4e2d7a1ac28d5759 (patch) | |
tree | 38f3357adbcddf3cf92fc112b28e44aea92685b7 /libstdc++-v3 | |
parent | 4d42b5cd6f4b014ae22827ad570f241d4437d5fa (diff) | |
download | gcc-5ee996a2c62317d11b9ef0df4e2d7a1ac28d5759.zip gcc-5ee996a2c62317d11b9ef0df4e2d7a1ac28d5759.tar.gz gcc-5ee996a2c62317d11b9ef0df4e2d7a1ac28d5759.tar.bz2 |
stl_raw_storage_iter.h (raw_storage_iterator<>:: operator=(const _Tp&)): Use std::__addressof.
2010-09-16 Paolo Carlini <paolo.carlini@oracle.com>
* include/bits/stl_raw_storage_iter.h (raw_storage_iterator<>::
operator=(const _Tp&)): Use std::__addressof.
From-SVN: r164343
Diffstat (limited to 'libstdc++-v3')
-rw-r--r-- | libstdc++-v3/ChangeLog | 5 | ||||
-rw-r--r-- | libstdc++-v3/include/bits/stl_raw_storage_iter.h | 4 |
2 files changed, 7 insertions, 2 deletions
diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog index 1af8a28..aa9d624 100644 --- a/libstdc++-v3/ChangeLog +++ b/libstdc++-v3/ChangeLog @@ -1,5 +1,10 @@ 2010-09-16 Paolo Carlini <paolo.carlini@oracle.com> + * include/bits/stl_raw_storage_iter.h (raw_storage_iterator<>:: + operator=(const _Tp&)): Use std::__addressof. + +2010-09-16 Paolo Carlini <paolo.carlini@oracle.com> + * include/std/system_error (system_error::system_error(error_code), system_error(error_code, const string&), system_error(int, const error_category&), system_error(int, const error_category&, diff --git a/libstdc++-v3/include/bits/stl_raw_storage_iter.h b/libstdc++-v3/include/bits/stl_raw_storage_iter.h index de6cad9..254aa85 100644 --- a/libstdc++-v3/include/bits/stl_raw_storage_iter.h +++ b/libstdc++-v3/include/bits/stl_raw_storage_iter.h @@ -1,6 +1,6 @@ // -*- C++ -*- -// Copyright (C) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2009 +// Copyright (C) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2009, 2010 // Free Software Foundation, Inc. // // This file is part of the GNU ISO C++ Library. This library is free @@ -81,7 +81,7 @@ _GLIBCXX_BEGIN_NAMESPACE(std) raw_storage_iterator& operator=(const _Tp& __element) { - std::_Construct(&*_M_iter, __element); + std::_Construct(std::__addressof(*_M_iter), __element); return *this; } |