From 5202249e656d8b2568e49839ed2ce3cf55c96727 Mon Sep 17 00:00:00 2001 From: "danno@chromium.org" Date: Wed, 19 Feb 2014 16:35:19 +0000 Subject: [PATCH] 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 --- src/zone-allocator.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/zone-allocator.h b/src/zone-allocator.h index 312d395c8..7ed171390 100644 --- a/src/zone-allocator.h +++ b/src/zone-allocator.h @@ -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 zone_allocator(const zone_allocator&) throw() {} + template zone_allocator(const zone_allocator& other) throw() + : zone_(other.zone_) {} + template 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_; }; -- 2.34.1