Commit 5ee996a2 by Paolo Carlini Committed by Paolo Carlini

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
parent 4d42b5cd
2010-09-16 Paolo Carlini <paolo.carlini@oracle.com> 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), * include/std/system_error (system_error::system_error(error_code),
system_error(error_code, const string&), system_error(int, const system_error(error_code, const string&), system_error(int, const
error_category&), system_error(int, const error_category&, error_category&), system_error(int, const error_category&,
......
// -*- C++ -*- // -*- 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. // Free Software Foundation, Inc.
// //
// This file is part of the GNU ISO C++ Library. This library is free // This file is part of the GNU ISO C++ Library. This library is free
...@@ -81,7 +81,7 @@ _GLIBCXX_BEGIN_NAMESPACE(std) ...@@ -81,7 +81,7 @@ _GLIBCXX_BEGIN_NAMESPACE(std)
raw_storage_iterator& raw_storage_iterator&
operator=(const _Tp& __element) operator=(const _Tp& __element)
{ {
std::_Construct(&*_M_iter, __element); std::_Construct(std::__addressof(*_M_iter), __element);
return *this; return *this;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment