Browse Source

[cpp] Anchor TCast type in root namespace

Hugh 10 years ago
parent
commit
914086a563
1 changed files with 1 additions and 1 deletions
  1. 1 1
      gencpp.ml

+ 1 - 1
gencpp.ml

@@ -2362,7 +2362,7 @@ and gen_expression ctx retval expression =
       if (class_name="Array") then
          output ("hx::TCastToArray(" )
       else
-         output ("hx::TCast< " ^ class_name ^ " >::cast(" );
+         output ("hx::TCast< ::" ^ class_name ^ " >::cast(" );
       gen_expression ctx true e1;
       output ")";
    );;