Fix UB in uses_alloc_types.hpp
git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@273840 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -172,12 +172,12 @@ protected:
|
|||||||
|
|
||||||
private:
|
private:
|
||||||
template <class ...LArgs, class ...Args>
|
template <class ...LArgs, class ...Args>
|
||||||
static CtorAlloc const& getAllocatorFromPack(ArgumentListID<LArgs...>, Args&&... args) {
|
static CtorAlloc getAllocatorFromPack(ArgumentListID<LArgs...>, Args&&... args) {
|
||||||
return getAllocatorFromPackImp<LArgs const&...>(args...);
|
return getAllocatorFromPackImp<LArgs const&...>(args...);
|
||||||
}
|
}
|
||||||
|
|
||||||
template <class ...LArgs>
|
template <class ...LArgs>
|
||||||
static CtorAlloc const& getAllocatorFromPackImp(
|
static CtorAlloc getAllocatorFromPackImp(
|
||||||
typename detail::Identity<LArgs>::type..., CtorAlloc const& alloc) {
|
typename detail::Identity<LArgs>::type..., CtorAlloc const& alloc) {
|
||||||
return alloc;
|
return alloc;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user