diff options
| -rw-r--r-- | runtime/base/dchecked_vector.h | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/runtime/base/dchecked_vector.h b/runtime/base/dchecked_vector.h index 51dfba87eb..77f0ea2b7c 100644 --- a/runtime/base/dchecked_vector.h +++ b/runtime/base/dchecked_vector.h @@ -59,10 +59,8 @@ class dchecked_vector : private std::vector<T, Alloc> { : Base() { } explicit dchecked_vector(const allocator_type& alloc) : Base(alloc) { } - // Note that we cannot forward to std::vector(size_type, const allocator_type&) because it is not - // available in C++11, which is the latest GCC can support. http://b/25022512 explicit dchecked_vector(size_type n, const allocator_type& alloc = allocator_type()) - : Base(alloc) { resize(n); } + : Base(n, alloc) { } dchecked_vector(size_type n, const value_type& value, const allocator_type& alloc = allocator_type()) |