HaxeFoundation / hxcpp

Runtime files for c++ backend for haxe
Other
295 stars 184 forks source link

Cannot have an array of pointers #1096

Open singpolyma opened 6 months ago

singpolyma commented 6 months ago

Array<cpp.ConstCharStar> generates c++ that fails to compile error: conversion from ‘Dynamic’ to ‘const char*’ is ambiguous

Aidan63 commented 6 months ago

You need to wrap native types in cpp.Pointer or cpp.Struct to be usable with haxe containers.

singpolyma commented 5 months ago

Ok, so I guess it isn't supposed to work? I'm converting to SizeT for now as a workaround. Would be nice if the compile error was haxe-side not c++-side for this