Inline functions and external linkage

前端 未结 4 1274
太阳男子
太阳男子 2020-12-11 04:45

In this answer https://stackoverflow.com/a/4193698/738811 it\'s written that \"Inline functions by default have external linkage\". However it\'s not possible by default to

4条回答
  •  死守一世寂寞
    2020-12-11 05:04

    Inline functions aren't necessarily expanded inline. When they aren't, the language definition requires that there be only one copy of the function.

提交回复
热议问题