Inline functions and external linkage

前端 未结 4 1273
太阳男子
太阳男子 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:08

    Maybe a better way to express it is "If linkage is necessary, it will be external". Meaning, if you take the address of the inline function, that address will be externally visible (not a static to a module).

提交回复
热议问题