Commit 90631441 by Jonathan Wakely Committed by Jonathan Wakely

shared_ptr_base.h (__shared_ptr::_Deleter): Fix parameter type.

	* include/bits/shared_ptr_base.h (__shared_ptr::_Deleter): Fix
	parameter type.

From-SVN: r212027
parent 73c7d6bc
2014-06-26 Jonathan Wakely <jwakely@redhat.com>
* include/bits/shared_ptr_base.h (__shared_ptr::_Deleter): Fix
parameter type.
2014-06-25 Jonathan Wakely <jwakely@redhat.com> 2014-06-25 Jonathan Wakely <jwakely@redhat.com>
* include/bits/alloc_traits.h (__alloc_rebind): Define alias template. * include/bits/alloc_traits.h (__alloc_rebind): Define alias template.
......
...@@ -1085,7 +1085,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION ...@@ -1085,7 +1085,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
template<typename _Alloc> template<typename _Alloc>
struct _Deleter struct _Deleter
{ {
void operator()(typename _Alloc::pointer __ptr) void operator()(_Tp* __ptr)
{ {
__allocated_ptr<_Alloc> __guard{ _M_alloc, __ptr }; __allocated_ptr<_Alloc> __guard{ _M_alloc, __ptr };
allocator_traits<_Alloc>::destroy(_M_alloc, __guard.get()); allocator_traits<_Alloc>::destroy(_M_alloc, __guard.get());
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment