Fix shadowing warning

git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@309851 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Marshall Clow
2017-08-02 18:21:34 +00:00
parent b3d6031a54
commit db84e0edae

View File

@@ -22,7 +22,7 @@ template<typename T>
struct NoDefaultAllocator : std::allocator<T>
{
template<typename U> struct rebind { using other = NoDefaultAllocator<U>; };
NoDefaultAllocator(int id) : id(id) { }
NoDefaultAllocator(int id_) : id(id_) { }
template<typename U> NoDefaultAllocator(const NoDefaultAllocator<U>& a) : id(a.id) { }
int id;
};