diff options
Diffstat (limited to 'xsde/cxx/parser/parser-source.cxx')
-rw-r--r-- | xsde/cxx/parser/parser-source.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/xsde/cxx/parser/parser-source.cxx b/xsde/cxx/parser/parser-source.cxx index 47e4867..68a2338 100644 --- a/xsde/cxx/parser/parser-source.cxx +++ b/xsde/cxx/parser/parser-source.cxx @@ -639,10 +639,11 @@ namespace CXX if (poly) { String fq_type (fq_name (e.type ())); + String cast (mixin ? L"dynamic_cast" : L"static_cast"); inst = "p"; os << fq_type << "* p =" << endl - << "static_cast< " << fq_type << "* > (" << + << cast << "< " << fq_type << "* > (" << "this->_context ().nested_parser ());" << endl; } |