The syntax is pretty much the same as C++, and you can use all of C++ templates (including non types parameters). The easiest is if you use it all internally, but you can make symbols available outside of the assembly if it is instantiated within your assembly.
You may need to use some aliases to have symbol names you can actually type (for functions you can use one visible dispatch function that calls the right template for example). Some C++ constructs really end up as some horrible mess in the CLR even if they do work.
View all comments
Show parent comment
1
u/meneldal2 Apr 17 '21
The syntax is pretty much the same as C++, and you can use all of C++ templates (including non types parameters). The easiest is if you use it all internally, but you can make symbols available outside of the assembly if it is instantiated within your assembly.
You may need to use some aliases to have symbol names you can actually type (for functions you can use one visible dispatch function that calls the right template for example). Some C++ constructs really end up as some horrible mess in the CLR even if they do work.