Browse Source

[cpp] Emit '*' for RawPointer. Closes #3870

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

+ 1 - 1
gencpp.ml

@@ -544,7 +544,7 @@ let rec class_string klass suffix params =
    |  (["cpp"],"ConstPointer") ->
    |  (["cpp"],"ConstPointer") ->
         "::cpp::Pointer< " ^ (String.concat "," (List.map type_string params) ) ^ " >"
         "::cpp::Pointer< " ^ (String.concat "," (List.map type_string params) ) ^ " >"
    |  (["cpp"],"RawPointer") ->
    |  (["cpp"],"RawPointer") ->
-        " " ^ (String.concat "," (List.map type_string params) ) ^ " "
+        " " ^ (String.concat "," (List.map type_string params) ) ^ " * "
    |  (["cpp"],"RawConstPointer") ->
    |  (["cpp"],"RawConstPointer") ->
         " const " ^ (String.concat "," (List.map type_string params) ) ^ " * "
         " const " ^ (String.concat "," (List.map type_string params) ) ^ " * "
    |  (["cpp"],"Function") ->
    |  (["cpp"],"Function") ->