If i worked with someone that put 20 lines of bullshit templates that had to be processed in every file including it, just to recreate harder to read function overloads, I'd lose my damn mind.
Agreed. This seems like a "clever" C++ solution in search of a problem. It's great that you can do stuff like this, but just because you can doesn't necessarily mean you should. It's a ridiculous amount of overkill and additional complexity for a problem that's trivial to solve in far less convoluted ways.
37
u/Sopel97 Aug 17 '18 edited Aug 17 '18
or just
I know this may be the obvious way, but it's so much cleaner I wouldn't even consider writing a blog post about your "solution".