* include/tr1/functional: Use std::__addressof.
* include/tr1/hashtable_policy.h: Likewise.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@159661
138bc75d-0d04-0410-961f-
82ee72b054a4
+2010-05-21 Paolo Carlini <paolo.carlini@oracle.com>
+
+ * include/tr1/functional: Use std::__addressof.
+ * include/tr1/hashtable_policy.h: Likewise.
+
2010-05-20 Paolo Carlini <paolo.carlini@oracle.com>
PR libstdc++/41792
#include <bits/stringfwd.h>
#include <tr1/functional_hash.h>
#include <ext/type_traits.h>
+#include <bits/move.h> // for std::__addressof
namespace std
{
typedef _Tp type;
explicit
- reference_wrapper(_Tp& __indata): _M_data(&__indata)
+ reference_wrapper(_Tp& __indata)
+ : _M_data(std::__addressof(__indata))
{ }
reference_wrapper(const reference_wrapper<_Tp>& __inref):
pointer
operator->() const
- { return &this->_M_cur->_M_v; }
+ { return std::__addressof(this->_M_cur->_M_v); }
_Node_iterator&
operator++()
pointer
operator->() const
- { return &this->_M_cur->_M_v; }
+ { return std::__addressof(this->_M_cur->_M_v); }
_Node_const_iterator&
operator++()
pointer
operator->() const
- { return &this->_M_cur_node->_M_v; }
+ { return std::__addressof(this->_M_cur_node->_M_v); }
_Hashtable_iterator&
operator++()
pointer
operator->() const
- { return &this->_M_cur_node->_M_v; }
+ { return std::__addressof(this->_M_cur_node->_M_v); }
_Hashtable_const_iterator&
operator++()