Sami-Vuorela / aatc

Angelscript addon: Template Containers brings the STL containers to angelscript
Other
38 stars 7 forks source link

Hello #3

Open delazarus opened 8 years ago

delazarus commented 8 years ago

Please clarify, how to: create instanse for example unordered_map in C++ and then pass it ti angelscript. And how get it back as result (by value? by reference to input argument?)

We have a lot of it in project but I cant figure it out by mysleft. I am familiar with basics of C++ templates etc, but in complex it is hours of wasted time :(

Thanks

Sami-Vuorela commented 8 years ago

Currently the AATC containers do not have any kind of convenient c++ / AS interface. My own project didn't need it and noone else seemed interested either.

However, I did start a refactoring yesterday which will add proper c++ interfaces for all containers, namespaces everywhere and clean up some of the nasty template mess that the c++ side of AATC has become. The refactoring should be done before next week.

Sami-Vuorela commented 8 years ago

Almost done!

Sami-Vuorela commented 8 years ago

The refactor is available in its own branch for now.

pastebin link to initial list of name changes in cpp
pastebin link to miniature documentation of the cpp interface

Proper documentation of all things in the refactor soon.
Tell me here if you get it working for your case or if you got other problems.

Sami-Vuorela commented 8 years ago

Version 2.31.0 now has this as a proper fine feature and proper documentation is available in its own documentation page.