HaxeFoundation / HaxeFoundation/hxcpp

Feature request. Generics for externs

Open
#712 3 comments 0 reactions 0 assignees View on GitHub
Dominant language
C++
Stars
330
Forks
227
Avg merge
2d 16h
Merged PRs (30d)
18

Description

It is currently possible to use std::vector (in a little bit complicated way), but no ways to use std::array (or I just don't know how).

So would be nice to have something like:
```
@:native('std::array') // I think it is hard to put something like this,
@:native('std::array<{0}, {1}>', T, S) // so maybe it may be as this?
@:native('std::array') // or like this and T and S will be atomatically added as template values
extern class StdArray {
...
}

//and somewhere in code:
var arr:StdArray = ....;
```

This may help a lot to work with C++ templates in Haxe.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.