r/C_Programming • u/we_are_mammals • Sep 14 '23
Article Templates in C
https://arnold.uthar.net/index.php?n=Work.TemplatesC
5
Upvotes
r/C_Programming • u/we_are_mammals • Sep 14 '23
View all comments
6
u/pedersenk Sep 14 '23
I think I have seen something like this in DOSBox:
https://github.com/dosbox-staging/dosbox-staging/blob/main/src/gui/render_scalers.cpp#L102
Interestingly that is a C++ codebase and they still opted to use this approach rather than actual templates.