Chromium Code Reviews| Index: src/splay-tree.h |
| diff --git a/src/splay-tree.h b/src/splay-tree.h |
| index 388f9b5429f889bc7aebcefaf90ba543a7f3178d..4b7ddc8ff2952186090d2dbb0281cd662b416a62 100644 |
| --- a/src/splay-tree.h |
| +++ b/src/splay-tree.h |
| @@ -69,6 +69,10 @@ class SplayTree { |
| INLINE(void operator delete(void* p, size_t)) { |
|
Jakob Kummerow
2012/06/18 12:08:41
"delete" operators don't take "size" arguments. Th
|
| AllocationPolicy::Delete(p); |
| } |
| + // Please the MSVC compiler. We should never have to execute this. |
| + INLINE(void operator delete(void* p, size_t size, AllocationPolicy policy)) { |
|
Jakob Kummerow
2012/06/18 12:08:41
same here
|
| + UNREACHABLE(); |
| + } |
| // Inserts the given key in this tree with the given value. Returns |
| // true if a node was inserted, otherwise false. If found the locator |
| @@ -122,6 +126,11 @@ class SplayTree { |
| INLINE(void operator delete(void* p, size_t)) { |
|
Jakob Kummerow
2012/06/18 12:08:41
same here
|
| return AllocationPolicy::Delete(p); |
| } |
| + // Please the MSVC compiler. We should never have to execute |
| + // this. |
| + INLINE(void operator delete(void* p, size_t, AllocationPolicy allocator)) { |
|
Jakob Kummerow
2012/06/18 12:08:41
same here
|
| + UNREACHABLE(); |
| + } |
| Key key() { return key_; } |
| Value value() { return value_; } |