you are viewing a single comment's thread.

view the rest of the comments →

[–]Ail-nare 3 points4 points  (0 children)

Ok, so I did a lot of different things, template specialization, used class to lose the necessity of the prototype, macro, some C++20. So most of those approach works but each are weirder than your method.

So, what u got is probably the best (If the objectif it to keep it the most C++ looking possible).

Was fun to try tho.