+2018-06-06 Jonathan Wakely <jwakely@redhat.com>
+
+ * include/bits/shared_ptr_base.h (__shared_count): Remove redundant
+ move of const value.
+
2018-06-06 Jakub Jelinek <jakub@redhat.com>
PR c++/86068
public:
using __allocator_type = __alloc_rebind<_Alloc, _Sp_counted_ptr_inplace>;
+ // Alloc parameter is not a reference so doesn't alias anything in __args
template<typename... _Args>
_Sp_counted_ptr_inplace(_Alloc __a, _Args&&... __args)
: _M_impl(__a)
typename _Sp_cp_type::__allocator_type __a2(__a);
auto __guard = std::__allocate_guarded(__a2);
_Sp_cp_type* __mem = __guard.get();
- ::new (__mem) _Sp_cp_type(std::move(__a),
- std::forward<_Args>(__args)...);
+ ::new (__mem) _Sp_cp_type(__a, std::forward<_Args>(__args)...);
_M_pi = __mem;
__guard = nullptr;
}