C++ Templates: Convincing self against code bloat

前端 未结 7 1062
暖寄归人
暖寄归人 2020-12-09 18:08

I have heard about code bloats in context of C++ templates. I know that is not the case with modern C++ compilers. But, I want to construct an example and convince myself.

相关标签:
7条回答
  • 2020-12-09 19:10

    The generated code will be exactly the same, since the code in both files is exactly the same. You can disassemble the code to check it if you want.

    0 讨论(0)
提交回复
热议问题