Viewing compiler expanded code - C++

后端 未结 5 705
無奈伤痛
無奈伤痛 2021-01-04 09:36

I learned that compiler will expand macros while compiling. Templates are also expanded at the compile time. Is there any way to see this expanded code? I am compiling using

5条回答
  •  春和景丽
    2021-01-04 09:52

    Note that /E in VC++ only expands preprocessor statements (that is, #include, #ifdef, #define etc.)

    I am not aware of any modern compiler that allows to expand templates.

提交回复
热议问题