aboutsummaryrefslogtreecommitdiff
path: root/examples/cxx/hybrid/evolution/passthrough/xml.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'examples/cxx/hybrid/evolution/passthrough/xml.cxx')
-rw-r--r--examples/cxx/hybrid/evolution/passthrough/xml.cxx19
1 files changed, 19 insertions, 0 deletions
diff --git a/examples/cxx/hybrid/evolution/passthrough/xml.cxx b/examples/cxx/hybrid/evolution/passthrough/xml.cxx
new file mode 100644
index 0000000..d60ba81
--- /dev/null
+++ b/examples/cxx/hybrid/evolution/passthrough/xml.cxx
@@ -0,0 +1,19 @@
+// file : examples/cxx/hybrid/evolution/passthrough/xml.cxx
+// author : Boris Kolpackov <boris@codesynthesis.com>
+// copyright : not copyrighted - public domain
+
+#include "xml.hxx"
+
+namespace xml
+{
+ element::
+ ~element ()
+ {
+ for (elements::iterator i = children_.begin ();
+ i != children_.end ();
+ ++i)
+ {
+ delete *i;
+ }
+ }
+}