OSDN Git Service

2010-09-16 Paolo Carlini <paolo.carlini@oracle.com>
authorpaolo <paolo@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 16 Sep 2010 17:09:10 +0000 (17:09 +0000)
committerpaolo <paolo@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 16 Sep 2010 17:09:10 +0000 (17:09 +0000)
* include/bits/stl_raw_storage_iter.h (raw_storage_iterator<>::
operator=(const _Tp&)): Use std::__addressof.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@164343 138bc75d-0d04-0410-961f-82ee72b054a4

libstdc++-v3/ChangeLog
libstdc++-v3/include/bits/stl_raw_storage_iter.h

index 1af8a28..aa9d624 100644 (file)
@@ -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&,
index de6cad9..254aa85 100644 (file)
@@ -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;
       }