Skip to content

Commit 21835dd

Browse files
committed
Simplify construct_at constraint
1 parent eaaef8a commit 21835dd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

stl/inc/xutility

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -435,8 +435,8 @@ struct _Get_rebind_alias<_Ty, _Other, void_t<typename _Ty::template rebind<_Othe
435435

436436
#if _HAS_CXX20
437437
_EXPORT_STD template <class _Ty, class... _Types>
438-
requires requires(_Ty* _Location, _Types&&... _Args) {
439-
::new (static_cast<void*>(_Location)) _Ty(_STD forward<_Types>(_Args)...); // per LWG-3888
438+
requires requires(void* _VoidPtr, _Types&&... _Args) {
439+
::new (_VoidPtr) _Ty(_STD forward<_Types>(_Args)...); // per LWG-3888
440440
}
441441
constexpr _Ty* construct_at(_Ty* const _Location, _Types&&... _Args) noexcept(
442442
noexcept(::new(static_cast<void*>(_Location)) _Ty(_STD forward<_Types>(_Args)...))) /* strengthened */ {

0 commit comments

Comments
 (0)