Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot have an array of pointers #1096

Open
singpolyma opened this issue Mar 11, 2024 · 2 comments
Open

Cannot have an array of pointers #1096

singpolyma opened this issue Mar 11, 2024 · 2 comments

Comments

@singpolyma
Copy link

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

@Aidan63
Copy link
Contributor

Aidan63 commented Mar 14, 2024

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

@singpolyma
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants