* include/bits/allocated_ptr.h (__allocated_ptr::_S_raw_ptr): Make
static.
From-SVN: r238305
+2016-07-13 Jonathan Wakely <jwakely@redhat.com>
+
+ * include/bits/allocated_ptr.h (__allocated_ptr::_S_raw_ptr): Make
+ static.
+
2016-07-13 Jonathan Wakely <jwakely@redhat.com>
Revert "Add non-const overload of std::string::data()".
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<typename _Ptr>
- 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;