11 ms·
https://stackoverflow.com/a/22645853 https://stackoverflow.com/a/22645853
by laverick 9y ago
https://stackoverflow.com/a/22645853 https://stackoverflow.com/a/22645853
- joshuamorton 9y agoI think I knew that templates were Turing complete, but so are java generics, it's just that to get dependent types in generics you have to reinvent the integers within the generic system. Not so for templates, which I didn't realize. That's pretty nifty!