What is a “translation unit” in C++

前端 未结 11 723
既然无缘
既然无缘 2020-11-21 07:56

I am reading at the time the \"Effective C++\" written by Meyers and came across the term \"translation unit\".

Could somebody please give me an explanation of:

11条回答
  •  春和景丽
    2020-11-21 08:35

    In addition to the ODR, the translation unit is important in the definition of unnamed namespaces, which replaces one of the old uses of "static".

    I guess I still don't have enough points to add a comment under the top answer.

提交回复
热议问题