[patch] Make __allocated_ptr::_S_raw_ptr static
Jonathan Wakely
jwakely@redhat.com
Wed Jul 13 17:23:00 GMT 2016
A non-text attachment was scrubbed...
Name: not available
Type: text/x-patch
Size: 102 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/libstdc++/attachments/20160713/76d2f7bc/attachment.bin>
-------------- next part --------------
commit 421ccb84e555efcd7e3e0123dc85dd40155f1e82
Author: Jonathan Wakely <jwakely@redhat.com>
Date: Wed Jul 13 17:34:04 2016 +0100
Make __allocated_ptr::_S_raw_ptr static
* include/bits/allocated_ptr.h (__allocated_ptr::_S_raw_ptr): Make
static.
diff --git a/libstdc++-v3/include/bits/allocated_ptr.h b/libstdc++-v3/include/bits/allocated_ptr.h
index 2bd9d82..97e2666 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<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;
More information about the Libstdc++
mailing list