Sadly, this is representative of the new trend of C++ programmers.
I will get down voted, hated, and laughed at, but I do prefer the original version of the code.
It is infinitely more simple and readable, and the layers of abstraction added are of pretty much no value here.
If I stumbled across the latter version, I would just scratch my head. And I've seen sooo many projects just end up in a big code bloat just because some programmers wanted to add tons of "new" features like this that add nothing and just complexify the code for no reason.
If I stumbled across the latter version, I would just scratch my head. And I've seen sooo many projects just end up in a big code bloat just because some programmers wanted to add tons of "new" features like this that add nothing and just complexify the code for no reason.