Make __allocated_ptr::_S_raw_ptr static
authorJonathan Wakely <jwakely@redhat.com>
Wed, 13 Jul 2016 17:22:47 +0000 (18:22 +0100)
committerJonathan Wakely <redi@gcc.gnu.org>
Wed, 13 Jul 2016 17:22:47 +0000 (18:22 +0100)
* include/bits/allocated_ptr.h (__allocated_ptr::_S_raw_ptr): Make
static.

From-SVN: r238305

libstdc++-v3/ChangeLog
libstdc++-v3/include/bits/allocated_ptr.h

index e3a84c5a1f0bf1085088944c4d9b859b8d36eb01..f5246fe057741c8f9a7b27eece5821c04cb6087c 100644 (file)
@@ -1,3 +1,8 @@
+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()".
index 2bd9d82fd039ea1099fb4cd340760b649c1a4cde..97e26662432b556a2a1cfff28b5b0c485c564cff 100644 (file)
@@ -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<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;