From 618b1426795e911c5858ae3f598c3c2b38edde54 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=C3=A3o=20Reis?= Date: Sat, 12 Sep 2015 23:29:21 +0100 Subject: [PATCH] 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 Reviewed-By: orangemocha - Alexis Campailla Reviewed-By: bnoordhuis - Ben Noordhuis --- deps/v8/src/zone-allocator.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/deps/v8/src/zone-allocator.h b/deps/v8/src/zone-allocator.h index ab0ae9cf606ddb..1eb69b89dd7064 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_; }