hxcpp icon indicating copy to clipboard operation
hxcpp copied to clipboard

Cannot have an array of pointers

Open singpolyma opened this issue 1 year ago • 2 comments

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

singpolyma avatar Mar 11 '24 20:03 singpolyma

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

Aidan63 avatar Mar 14 '24 09:03 Aidan63

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

singpolyma avatar Mar 25 '24 17:03 singpolyma