mirror of git://gcc.gnu.org/git/gcc.git
re PR libstdc++/49925 ([C++0x] ADL bug mixing boost::shared_ptr and std::make_shared<>)
2011-07-31 Paolo Carlini <paolo.carlini@oracle.com> PR libstdc++/49925 * include/bits/shared_ptr.h (make_shared): Qualify allocate_shared with std::. * include/bits/shared_ptr_base.h (__make_shared): Likewise. From-SVN: r176985
This commit is contained in:
parent
a30596354d
commit
3096f51bf6
|
@ -1,3 +1,10 @@
|
||||||
|
2011-07-31 Paolo Carlini <paolo.carlini@oracle.com>
|
||||||
|
|
||||||
|
PR libstdc++/49925
|
||||||
|
* include/bits/shared_ptr.h (make_shared): Qualify allocate_shared
|
||||||
|
with std::.
|
||||||
|
* include/bits/shared_ptr_base.h (__make_shared): Likewise.
|
||||||
|
|
||||||
2011-07-29 Benjamin Kosnik <bkoz@redhat.com>
|
2011-07-29 Benjamin Kosnik <bkoz@redhat.com>
|
||||||
|
|
||||||
* doc/xml/manual/build_hacking.xml: Markup imagedata changes.
|
* doc/xml/manual/build_hacking.xml: Markup imagedata changes.
|
||||||
|
|
|
@ -607,8 +607,8 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
|
||||||
make_shared(_Args&&... __args)
|
make_shared(_Args&&... __args)
|
||||||
{
|
{
|
||||||
typedef typename std::remove_const<_Tp>::type _Tp_nc;
|
typedef typename std::remove_const<_Tp>::type _Tp_nc;
|
||||||
return allocate_shared<_Tp>(std::allocator<_Tp_nc>(),
|
return std::allocate_shared<_Tp>(std::allocator<_Tp_nc>(),
|
||||||
std::forward<_Args>(__args)...);
|
std::forward<_Args>(__args)...);
|
||||||
}
|
}
|
||||||
|
|
||||||
/// std::hash specialization for shared_ptr.
|
/// std::hash specialization for shared_ptr.
|
||||||
|
|
|
@ -1432,14 +1432,14 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
|
||||||
__make_shared(_Args&&... __args)
|
__make_shared(_Args&&... __args)
|
||||||
{
|
{
|
||||||
typedef typename std::remove_const<_Tp>::type _Tp_nc;
|
typedef typename std::remove_const<_Tp>::type _Tp_nc;
|
||||||
return __allocate_shared<_Tp, _Lp>(std::allocator<_Tp_nc>(),
|
return std::__allocate_shared<_Tp, _Lp>(std::allocator<_Tp_nc>(),
|
||||||
std::forward<_Args>(__args)...);
|
std::forward<_Args>(__args)...);
|
||||||
}
|
}
|
||||||
|
|
||||||
/// std::hash specialization for __shared_ptr.
|
/// std::hash specialization for __shared_ptr.
|
||||||
template<typename _Tp, _Lock_policy _Lp>
|
template<typename _Tp, _Lock_policy _Lp>
|
||||||
struct hash<__shared_ptr<_Tp, _Lp>>
|
struct hash<__shared_ptr<_Tp, _Lp>>
|
||||||
: public std::unary_function<__shared_ptr<_Tp, _Lp>, size_t>
|
: public __hash_base<size_t, __shared_ptr<_Tp, _Lp>>
|
||||||
{
|
{
|
||||||
size_t
|
size_t
|
||||||
operator()(const __shared_ptr<_Tp, _Lp>& __s) const
|
operator()(const __shared_ptr<_Tp, _Lp>& __s) const
|
||||||
|
|
Loading…
Reference in New Issue