aboutsummaryrefslogtreecommitdiff
path: root/examples/cxx/hybrid/wildcard/envelope-pimpl.cxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2011-02-11 17:18:30 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2011-02-11 17:18:30 +0200
commit49d8e39f9a42ff1963c5df0f6e9ed903d66f2eb0 (patch)
tree17cb3577baa07e30720788e059399f7c07c22a37 /examples/cxx/hybrid/wildcard/envelope-pimpl.cxx
parentbcf2ac66e6c21d75f4e76b8e0bc2e3c6d64886b8 (diff)
Fix recursive polymorphic parsing in C++/Parser
New test: cxx/parser/polyrecur.
Diffstat (limited to 'examples/cxx/hybrid/wildcard/envelope-pimpl.cxx')
-rw-r--r--examples/cxx/hybrid/wildcard/envelope-pimpl.cxx6
1 files changed, 1 insertions, 5 deletions
diff --git a/examples/cxx/hybrid/wildcard/envelope-pimpl.cxx b/examples/cxx/hybrid/wildcard/envelope-pimpl.cxx
index 16bd2e5..bb5827c 100644
--- a/examples/cxx/hybrid/wildcard/envelope-pimpl.cxx
+++ b/examples/cxx/hybrid/wildcard/envelope-pimpl.cxx
@@ -61,7 +61,7 @@ namespace email
//
xml_schema::parser_context& ctx = _context ();
p->pre ();
- p->_pre_impl (ctx);
+ ctx.nested_parser (p);
}
}
}
@@ -75,10 +75,6 @@ namespace email
{
if (ns == "http://www.codesynthesis.com/email")
{
- // Note that we don't call _post_impl() (corresponding to
- // _pre_impl()) here. It is called automatically by the
- // infrastructure.
- //
envelope* env = envelope_base_pimpl_state_.envelope_;
if (name == "text")