Do inline functions have addresses?

后端 未结 6 1705
情深已故
情深已故 2020-12-14 19:05

In section 7.1.1 of the book \"The C++ Programming Language\" the author states:

\"inline function still has a unique address and so do the static variables of an in

6条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2020-12-14 19:58

    Inline functions are have addresses if you need one. Standard only says that:

    An inline function with external linkage shall have the same address in all translation units.

提交回复
热议问题