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 -

php - Laravel not returning controller -

c# - Confused on how to specify a Platform and Version while using ChromeOptions for RemoteWebDriver with Selenium donNet since recent updates -