Fix compile errors due to name-hiding and an unused function argument.

These problems are pointed out by clang-tidy and fail compilation on msvc at /W4 /WX.

Signed-off-by: Daniela Engert <dani@ngrt.de>
This commit is contained in:
Daniela Engert authored and Victor Zverovich committed 2019-01-13 12:18:05 -05:00
1 parent dde095fab8
commit e05dfb0887
2 files changed
+4 -4

No files matched your search

+1 -1
View File
@@ -627,7 +627,7 @@ template <typename T> struct user_allocator {
return new value_type[cnt];
}
void deallocate(pointer p, size_type cnt) { delete[] p; }
void deallocate(pointer p, size_type) { delete[] p; }
void construct(pointer p, const value_type& val) { new (p) value_type(val); }