Fix typo in allocator_traits::construct. This fixes PR14175, which shows up if an allocator has a no-args construct method
git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@221697 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
c7b233d1de
commit
3f5579f0b2
@ -1450,7 +1450,7 @@ struct _LIBCPP_TYPE_VIS_ONLY allocator_traits
|
|||||||
template <class _Tp, class... _Args>
|
template <class _Tp, class... _Args>
|
||||||
_LIBCPP_INLINE_VISIBILITY
|
_LIBCPP_INLINE_VISIBILITY
|
||||||
static void construct(allocator_type& __a, _Tp* __p, _Args&&... __args)
|
static void construct(allocator_type& __a, _Tp* __p, _Args&&... __args)
|
||||||
{__construct(__has_construct<allocator_type, pointer, _Args...>(),
|
{__construct(__has_construct<allocator_type, _Tp*, _Args...>(),
|
||||||
__a, __p, _VSTD::forward<_Args>(__args)...);}
|
__a, __p, _VSTD::forward<_Args>(__args)...);}
|
||||||
#else // _LIBCPP_HAS_NO_VARIADICS
|
#else // _LIBCPP_HAS_NO_VARIADICS
|
||||||
template <class _Tp>
|
template <class _Tp>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user