|
@@ -2314,6 +2314,8 @@ let cpp_can_static_cast funcType inferredType =
|
|
| TCppReference(_) | TCppStar(_) | TCppStruct(_) -> false
|
|
| TCppReference(_) | TCppStar(_) | TCppStruct(_) -> false
|
|
| _ ->
|
|
| _ ->
|
|
(match inferredType with
|
|
(match inferredType with
|
|
|
|
+ | TCppInst (cls, _) when is_extern_class cls -> false
|
|
|
|
+ | TCppEnum e when is_extern_enum e -> false
|
|
| TCppInst _
|
|
| TCppInst _
|
|
| TCppClass
|
|
| TCppClass
|
|
| TCppEnum _
|
|
| TCppEnum _
|