Having to replace some quite simple looking legacy C++ code with newer code that looks even worse (at least more complicated).
Ranges (as in a float min/max values) are not returned as a pair/tuple. So every line is a round trip into the lookup logic.
And there is no case where only one of those values are needed.
I guess I need to intervene here with a better API. #cpp #boyscoutrule #legacycode
#cpp #boyscoutrule #legacycode