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

Popular posts from this blog

php - How to pass multiple values from url -

xslt - DocBook 5 to PDF transform failing with error: "fo:flow" is missing child elements. Required content model: marker* -

database - php search bar when I press submit with nothing in the search bar it shows all the data -