I hope this is not a duplicate of the question itself, but the search terms are so ambiguous that I cannot think of anything better.
In any case, let's say we have two classes:
class FloatRect { float x,y,width,height; };
and somewhere else
class FloatBox { float top,left,bottom,right; };
From a practical point of view, they are the same, also the compiler considers them as a kind of typedef? Or will it generate two separate units of code?
I am curious because I would like to go beyond typedefs and make several type options to improve readability. I don't want unnecessary duplication, though ...
Hooray!
source share