Commit 5202249e authored by danno@chromium.org's avatar danno@chromium.org

Fix template copy constructor in zone_allocator

R=rossberg@chromium.org

Review URL: https://codereview.chromium.org/165943005

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@19498 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
parent 7d64aab1
......@@ -50,7 +50,9 @@ class zone_allocator {
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 @@ class zone_allocator {
}
private:
zone_allocator();
Zone* zone_;
};
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment