Skip to content
This repository has been archived by the owner on Oct 16, 2021. It is now read-only.

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: nodejs/node#2843
Reviewed-By: rvagg - Rod Vagg <[email protected]>
Reviewed-By: orangemocha - Alexis Campailla <[email protected]>
Reviewed-By: bnoordhuis - Ben Noordhuis <[email protected]>
  • Loading branch information
joaocgreis authored and jBarz committed Nov 4, 2016
1 parent 7a622f3 commit 665b1fc
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 665b1fc

Please sign in to comment.