mirror of
https://github.com/nodejs/node.git
synced 2026-11-09 15:11:11 -05:00
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>
This commit is contained in:
1 parent
583734342e
commit
618b142679
1 file changed
+2
-2
Vendored
+2
-2
@@ -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_;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user