aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaolo Carlini <paolo.carlini@oracle.com>2008-09-18 18:55:55 +0000
committerPaolo Carlini <paolo@gcc.gnu.org>2008-09-18 18:55:55 +0000
commitc78a2119d8c5728a09df47c7f30a7a190b6864da (patch)
treefc6d14ba3c0b556d29c3ec4c6904e78ab4c04444
parente7f881933231e418019123cf912a88006481bd5c (diff)
downloadgcc-c78a2119d8c5728a09df47c7f30a7a190b6864da.zip
gcc-c78a2119d8c5728a09df47c7f30a7a190b6864da.tar.gz
gcc-c78a2119d8c5728a09df47c7f30a7a190b6864da.tar.bz2
shared_ptr.h (__shared_count<>:: __shared_count(_Ptr, _Deleter), [...]): Qualify new with ::.
2008-09-18 Paolo Carlini <paolo.carlini@oracle.com> * include/bits/shared_ptr.h (__shared_count<>:: __shared_count(_Ptr, _Deleter), __shared_count<>:: __shared_count(_Ptr, _Deleter, _Alloc), __shared_count<>:: __shared_count(_Sp_make_shared_tag, _Tp*, _Alloc, _Args&&...)): Qualify new with ::. From-SVN: r140469
-rw-r--r--libstdc++-v3/ChangeLog8
-rw-r--r--libstdc++-v3/include/bits/shared_ptr.h8
2 files changed, 12 insertions, 4 deletions
diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog
index 0d9e413..e018ecb 100644
--- a/libstdc++-v3/ChangeLog
+++ b/libstdc++-v3/ChangeLog
@@ -1,3 +1,11 @@
+2008-09-18 Paolo Carlini <paolo.carlini@oracle.com>
+
+ * include/bits/shared_ptr.h (__shared_count<>::
+ __shared_count(_Ptr, _Deleter), __shared_count<>::
+ __shared_count(_Ptr, _Deleter, _Alloc), __shared_count<>::
+ __shared_count(_Sp_make_shared_tag, _Tp*, _Alloc, _Args&&...)):
+ Qualify new with ::.
+
2008-09-17 Paolo Carlini <paolo.carlini@oracle.com>
PR libstdc++/37547
diff --git a/libstdc++-v3/include/bits/shared_ptr.h b/libstdc++-v3/include/bits/shared_ptr.h
index 964797b..2d7cf24 100644
--- a/libstdc++-v3/include/bits/shared_ptr.h
+++ b/libstdc++-v3/include/bits/shared_ptr.h
@@ -249,7 +249,7 @@ namespace std
try
{
_M_pi = __a2.allocate(1);
- new(static_cast<void*>(_M_pi)) _Sp_cd_type(__p, __d);
+ ::new(static_cast<void*>(_M_pi)) _Sp_cd_type(__p, __d);
}
catch(...)
{
@@ -269,7 +269,7 @@ namespace std
try
{
_M_pi = __a2.allocate(1);
- new(static_cast<void*>(_M_pi)) _Sp_cd_type(__p, __d, __a);
+ ::new(static_cast<void*>(_M_pi)) _Sp_cd_type(__p, __d, __a);
}
catch(...)
{
@@ -290,8 +290,8 @@ namespace std
try
{
_M_pi = __a2.allocate(1);
- new(static_cast<void*>(_M_pi)) _Sp_cp_type(__a,
- std::forward<_Args>(__args)...);
+ ::new(static_cast<void*>(_M_pi)) _Sp_cp_type(__a,
+ std::forward<_Args>(__args)...);
}
catch(...)
{