]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
shared_ptr.h (__shared_count<>:: __shared_count(_Ptr, _Deleter), [...]): Qualify...
authorPaolo Carlini <paolo.carlini@oracle.com>
Thu, 18 Sep 2008 18:55:55 +0000 (18:55 +0000)
committerPaolo Carlini <paolo@gcc.gnu.org>
Thu, 18 Sep 2008 18:55:55 +0000 (18:55 +0000)
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

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

index 0d9e413faa3a804aa91acd9675bd0ee721e2e470..e018ecbd0dcf7575051c8af60df2c0b6a3a2b786 100644 (file)
@@ -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
index 964797b140a4a4eb1dccf1584e8dad9fd18ea535..2d7cf24c043ebc22fba61950b0c40947b85de432 100644 (file)
@@ -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(...)
             {