From 64ef7989113d953cc1bf27ceb3340c9b7047eeff Mon Sep 17 00:00:00 2001 From: Marc Laukien Date: Mon, 16 Jul 2001 13:10:52 +0000 Subject: fixes --- cpp/src/slice2cpp/Gen.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'cpp/src/slice2cpp/Gen.cpp') diff --git a/cpp/src/slice2cpp/Gen.cpp b/cpp/src/slice2cpp/Gen.cpp index 39039124f68..197a2d61ca1 100644 --- a/cpp/src/slice2cpp/Gen.cpp +++ b/cpp/src/slice2cpp/Gen.cpp @@ -1514,7 +1514,8 @@ Slice::Gen::ObjectVisitor::visitOperation(const Operation_ptr& p) C << nl << "catch(" << exceptionTypeToString(*r) << " __ex)"; C << sb; C << nl << "__os -> write(" << cnt++ << ");"; - if(Proxy_ptr::dynamicCast(*r)) + if(ClassDef_ptr::dynamicCast(*r) || + Proxy_ptr::dynamicCast(*r)) { string s = "static_cast< "; s += typeToString(*r); -- cgit v1.2.3