Quantcast
Channel: GameDev.net
Viewing all articles
Browse latest Browse all 17825

implementing partial templates

$
0
0
Hi, I'm curious if anyone else would think that the use of a 'partial template' system in Angelscript would be useful. Specifically, if I want to bind a std::vector, I need to give it a unique name for each type (i.e. vectorInt, vectorFloat, etc). What if Angelscript could allow the use of the angle bracket syntax to name a type (i.e. Bind `std::vector<int>` to `vector<int>`). A user would not be able to instantiate a `vector<float>` unless this type was registered. does anyone think this might be useful? I haven't looked at the code yet, so I'm not sure how complicated this might be.

Viewing all articles
Browse latest Browse all 17825

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>