Skip to content

Commit

Permalink
deps,v8: fix compilation in VS2015
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
joaocgreis committed Sep 16, 2015
1 parent 5837343 commit 618b142
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions deps/v8/src/zone-allocator.h
Original file line number Diff line number Diff line change
Expand Up @@ -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_;
}

Expand Down

0 comments on commit 618b142

Please sign in to comment.