3 ms·
I don't enjoy converting stuff between different formats for different libraries either, but sticking associated bits of data together really does make sense. W
by TillE 11y ago
I don't enjoy converting stuff between different formats for different libraries either, but sticking associated bits of data together really does make sense. With a function that just takes four integers, you can't easily distinguish between two Points or a Rect, for example.
Plus, a lot of problems are solved by namespacing and something like this:
typedef std::tuple<int, int> Point;