projects
/
shibboleth
/
cpp-xmltooling.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8a8dc46
)
Removed covariant clone() implementation to fix ambiguity.
author
Scott Cantor
<cantor.2@osu.edu>
Fri, 3 Nov 2006 05:05:25 +0000
(
05:05
+0000)
committer
Scott Cantor
<cantor.2@osu.edu>
Fri, 3 Nov 2006 05:05:25 +0000
(
05:05
+0000)
xmltooling/base.h
patch
|
blob
|
history
diff --git
a/xmltooling/base.h
b/xmltooling/base.h
index
ef7bc53
..
f40c07d
100644
(file)
--- 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<cname*>(clone()
); \
} \
-
cname
* clone() const { \
+
xmltooling::XMLObject
* clone() const { \
std::auto_ptr<xmltooling::XMLObject> domClone(xmltooling::AbstractDOMCachingXMLObject::clone()); \
cname##Impl* ret=dynamic_cast<cname##Impl*>(domClone.get()); \
if (ret) { \