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
This commit is contained in:
Paolo Carlini 2010-09-16 17:09:10 +00:00 committed by Paolo Carlini
parent 4d42b5cd6f
commit 5ee996a2c6
2 changed files with 7 additions and 2 deletions

View File

@ -1,3 +1,8 @@
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),

View 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;
}