From: Jonathan Wakely Date: Wed, 13 Jul 2016 17:22:47 +0000 (+0100) Subject: Make __allocated_ptr::_S_raw_ptr static X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=260d92cd0d435f9f0869b25d84ce47f73d904b2f;p=gcc.git Make __allocated_ptr::_S_raw_ptr static * include/bits/allocated_ptr.h (__allocated_ptr::_S_raw_ptr): Make static. From-SVN: r238305 --- diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog index e3a84c5a1f0..f5246fe0577 100644 --- a/libstdc++-v3/ChangeLog +++ b/libstdc++-v3/ChangeLog @@ -1,3 +1,8 @@ +2016-07-13 Jonathan Wakely + + * include/bits/allocated_ptr.h (__allocated_ptr::_S_raw_ptr): Make + static. + 2016-07-13 Jonathan Wakely Revert "Add non-const overload of std::string::data()". diff --git a/libstdc++-v3/include/bits/allocated_ptr.h b/libstdc++-v3/include/bits/allocated_ptr.h index 2bd9d82fd03..97e26662432 100644 --- a/libstdc++-v3/include/bits/allocated_ptr.h +++ b/libstdc++-v3/include/bits/allocated_ptr.h @@ -85,10 +85,11 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION value_type* get() { return _S_raw_ptr(_M_ptr); } private: - value_type* _S_raw_ptr(value_type* __ptr) { return __ptr; } + static value_type* _S_raw_ptr(value_type* __ptr) { return __ptr; } template - auto _S_raw_ptr(_Ptr __ptr) -> decltype(_S_raw_ptr(__ptr.operator->())) + static auto + _S_raw_ptr(_Ptr __ptr) -> decltype(_S_raw_ptr(__ptr.operator->())) { return _S_raw_ptr(__ptr.operator->()); } _Alloc* _M_alloc;