From fd33530c6b9f7030a95196fefc2d989bd21386ae Mon Sep 17 00:00:00 2001 From: Scott Cantor Date: Fri, 3 Nov 2006 05:05:25 +0000 Subject: [PATCH] Removed covariant clone() implementation to fix ambiguity. --- xmltooling/base.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/xmltooling/base.h b/xmltooling/base.h index ef7bc53..f40c07d 100644 --- a/xmltooling/base.h +++ b/xmltooling/base.h @@ -1082,9 +1082,9 @@ */ #define IMPL_XMLOBJECT_CLONE(cname) \ cname* clone##cname() const { \ - return clone(); \ + return dynamic_cast(clone()); \ } \ - cname* clone() const { \ + xmltooling::XMLObject* clone() const { \ std::auto_ptr domClone(xmltooling::AbstractDOMCachingXMLObject::clone()); \ cname##Impl* ret=dynamic_cast(domClone.get()); \ if (ret) { \ -- 2.1.4