Index: third_party/tcmalloc/chromium/src/base/stl_allocator.h |
diff --git a/third_party/tcmalloc/chromium/src/base/stl_allocator.h b/third_party/tcmalloc/chromium/src/base/stl_allocator.h |
index 22bd4ae1b7d0d777d8b04ac9ee1acd6bae5bca5b..8276a83d77f7ceee765346cdcb5a1ff41c43c20e 100644 |
--- a/third_party/tcmalloc/chromium/src/base/stl_allocator.h |
+++ b/third_party/tcmalloc/chromium/src/base/stl_allocator.h |
@@ -37,7 +37,7 @@ |
#include <config.h> |
-#include <stddef.h> // for std::ptrdiff_t |
+#include <stddef.h> // for ptrdiff_t |
#include <limits> |
#include "base/logging.h" |
@@ -59,7 +59,7 @@ template <typename T, class Alloc> |
class STL_Allocator { |
public: |
typedef size_t size_type; |
- typedef std::ptrdiff_t difference_type; |
+ typedef ptrdiff_t difference_type; |
typedef T* pointer; |
typedef const T* const_pointer; |
typedef T& reference; |
@@ -87,6 +87,7 @@ class STL_Allocator { |
size_type max_size() const { return size_t(-1) / sizeof(T); } |
void construct(pointer p, const T& val) { ::new(p) T(val); } |
+ void construct(pointer p) { ::new(p) T(); } |
void destroy(pointer p) { p->~T(); } |
// There's no state, so these allocators are always equal |