c++ - Arithemtic between equivalent typedefs -
c++ - Arithemtic between equivalent typedefs -
i writing c++ compiler compiler class , wondering this. arithmetic between equivalent typedefs so, b/c typedefs have loose name equivalence:
typedef int foo; typedef int bar; int test; foo i; bar j; = 1; j = 2; test = + j; // code clarity is supposed work? typedefs glorified base of operations types or cascade hierarchy?
yes, work fine, think case when structs.
c++ compiler-construction typedef
Comments
Post a Comment