OSDN Git Service

2013-10-30 Chris Studholme <cvs@cs.utoronto.ca>
authorredi <redi@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 30 Oct 2013 18:26:53 +0000 (18:26 +0000)
committerredi <redi@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 30 Oct 2013 18:26:53 +0000 (18:26 +0000)
PR libstdc++/58912
* include/bits/shared_ptr_base.h (_Sp_counted_ptr_inplace): Remove
unnecessary initialization of storage buffer.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-4_7-branch@204222 138bc75d-0d04-0410-961f-82ee72b054a4

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

index e2d98ee..750cdcc 100644 (file)
@@ -1,3 +1,9 @@
+2013-10-30  Chris Studholme  <cvs@cs.utoronto.ca>
+
+       PR libstdc++/58912
+       * include/bits/shared_ptr_base.h (_Sp_counted_ptr_inplace): Remove
+       unnecessary initialization of storage buffer.
+
 2013-10-20  Chris Jefferson  <chris@bubblescope.net>
            Paolo Carlini  <paolo.carlini@oracle.com>
 
index 0d60eef..3d4d12b 100644 (file)
@@ -394,7 +394,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
     public:
       template<typename... _Args>
        _Sp_counted_ptr_inplace(_Alloc __a, _Args&&... __args)
-       : _M_impl(__a), _M_storage()
+       : _M_impl(__a)
        {
          _M_impl._M_ptr = static_cast<_Tp*>(static_cast<void*>(&_M_storage));
          // _GLIBCXX_RESOLVE_LIB_DEFECTS