Revision: 19498
Author: [email protected]
Date: Wed Feb 19 16:35:19 2014 UTC
Log: Fix template copy constructor in zone_allocator
[email protected]
Review URL: https://codereview.chromium.org/165943005
http://code.google.com/p/v8/source/detail?r=19498
Modified:
/branches/bleeding_edge/src/zone-allocator.h
=======================================
--- /branches/bleeding_edge/src/zone-allocator.h Wed Feb 19 08:28:14 2014
UTC
+++ /branches/bleeding_edge/src/zone-allocator.h Wed Feb 19 16:35:19 2014
UTC
@@ -50,7 +50,9 @@
explicit zone_allocator(Zone* zone) throw() : zone_(zone) {}
explicit zone_allocator(const zone_allocator& other) throw()
: zone_(other.zone_) {}
- template<typename U> zone_allocator(const zone_allocator<U>&) throw() {}
+ template<typename U> zone_allocator(const zone_allocator<U>& other)
throw()
+ : zone_(other.zone_) {}
+ template<typename U> friend class zone_allocator;
pointer address(reference x) const {return &x;}
const_pointer address(const_reference x) const {return &x;}
@@ -79,6 +81,7 @@
}
private:
+ zone_allocator();
Zone* zone_;
};
--
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
---
You received this message because you are subscribed to the Google Groups "v8-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.