Commit fab9fe8c authored by Jacob Potter's avatar Jacob Potter

Fix static_pointer_cast in generated ObjC

parent f7174584
......@@ -767,7 +767,7 @@ class ObjcGenerator(spec: Spec) extends Generator(spec) {
case (true, true) => throw new AssertionError("Function implemented on both sides")
case (false, false) => throw new AssertionError("Function not implemented")
case (true, false) => w.wl(s"$objcType$objcIdent = [${idObjc.ty(d.name + "_cpp_proxy")} ${idObjc.method(d.name + "_with_cpp")}:$cppIdent];")
case (false, true) => w.wl(s"$objcType$objcIdent = (static_cast<std::shared_ptr<$objcProxy>>($cppIdent))->objcRef;")
case (false, true) => w.wl(s"$objcType$objcIdent = std::static_pointer_cast<$objcProxy>($cppIdent)->objcRef;")
}
}
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment