Skip to content

Commit 618b142

Browse files
committed
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: #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>
1 parent 5837343 commit 618b142

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

deps/v8/src/zone-allocator.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -50,10 +50,10 @@ class zone_allocator {
5050
}
5151
void destroy(pointer p) { p->~T(); }
5252

53-
bool operator==(zone_allocator const& other) {
53+
bool operator==(zone_allocator const& other) const {
5454
return zone_ == other.zone_;
5555
}
56-
bool operator!=(zone_allocator const& other) {
56+
bool operator!=(zone_allocator const& other) const {
5757
return zone_ != other.zone_;
5858
}
5959

0 commit comments

Comments
 (0)