We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b66bb69 commit 97c42feCopy full SHA for 97c42fe
libcxx/include/__memory/shared_ptr.h
@@ -253,7 +253,7 @@ struct __shared_ptr_emplace : __shared_weak_count {
253
using __value_type = __remove_cv_t<_Tp>;
254
255
template <class... _Args>
256
- _LIBCPP_HIDE_FROM_ABI explicit __shared_ptr_emplace(_Alloc __a, _Args&&...) : __storage_(std::move(__a)) {
+ _LIBCPP_HIDE_FROM_ABI explicit __shared_ptr_emplace(_Alloc __a, _Args&&... __args) : __storage_(std::move(__a)) {
257
if constexpr (is_same<typename _Alloc::value_type, __for_overwrite_tag>::value) {
258
static_assert(
259
sizeof...(_Args) == 0, "No argument should be provided to the control block when using _for_overwrite");
0 commit comments