diff options
author | João Reis <reis@janeasystems.com> | 2015-09-12 23:29:21 +0100 |
---|---|---|
committer | João Reis <reis@janeasystems.com> | 2015-09-16 06:30:20 -0400 |
commit | 618b1426795e911c5858ae3f598c3c2b38edde54 (patch) | |
tree | b5ae66f2cc89fabbb4481b86acaaba513f799135 | |
parent | 583734342e543730c2f32863f538980eb81d3c85 (diff) | |
download | node-618b1426795e911c5858ae3f598c3c2b38edde54.tar.gz |
deps,v8: fix compilation in VS2015
To compile with VS2015, the == and != methods in zone-allocator.h need
to be marked const.
This change was introduced upstream in
https://chromium.googlesource.com/v8/v8.git/+/f9e4527f32c2c268cb79428c74ea9703e9db3aec
PR-URL: https://github.com/nodejs/node/pull/2843
Reviewed-By: rvagg - Rod Vagg <rod@vagg.org>
Reviewed-By: orangemocha - Alexis Campailla <orangemocha@nodejs.org>
Reviewed-By: bnoordhuis - Ben Noordhuis <info@bnoordhuis.nl>
-rw-r--r-- | deps/v8/src/zone-allocator.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/deps/v8/src/zone-allocator.h b/deps/v8/src/zone-allocator.h index ab0ae9cf6..1eb69b89d 100644 --- a/deps/v8/src/zone-allocator.h +++ b/deps/v8/src/zone-allocator.h @@ -50,10 +50,10 @@ class zone_allocator { } void destroy(pointer p) { p->~T(); } - bool operator==(zone_allocator const& other) { + bool operator==(zone_allocator const& other) const { return zone_ == other.zone_; } - bool operator!=(zone_allocator const& other) { + bool operator!=(zone_allocator const& other) const { return zone_ != other.zone_; } |