Skip to content

Commit fbc92af

Browse files
authored
"Implement" LWG-3632 by commenting unique_ptr CTAD (#2548)
1 parent 5b5634f commit fbc92af

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

stl/inc/memory

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3172,6 +3172,8 @@ public:
31723172
return *this;
31733173
}
31743174

3175+
// The Standard depicts these constructors that accept pointer as taking type_identity_t<pointer> to inhibit CTAD.
3176+
// Since pointer is an opaque type alias in our implementation, it inhibits CTAD without extra decoration.
31753177
template <class _Dx2 = _Dx, _Unique_ptr_enable_default_t<_Dx2> = 0>
31763178
explicit unique_ptr(pointer _Ptr) noexcept : _Mypair(_Zero_then_variadic_args_t{}, _Ptr) {}
31773179

0 commit comments

Comments
 (0)