4 ms·
I mean, if you could tell from my original post, I like C++ templates. The point is not to constantly write templates in your calling code, the point is to arch
by moth-fuzz 5y ago
I mean, if you could tell from my original post, I like C++ templates. The point is not to constantly write templates in your calling code, the point is to architect a library with templates that affords flexibility and dynamism so that the calling code is easy to write, read, and reason about. Consider, for example, the sol2[0] example usage code vs the actual source code itself[1].
0. https://github.com/ThePhD/sol2 https://github.com/ThePhD/sol2
1. https://github.com/ThePhD/sol2/blob/develop/include/sol/function_types.hpp https://github.com/ThePhD/sol2/blob/develop/include/sol/func...