inline function linker error

前端 未结 5 1838
面向向阳花
面向向阳花 2020-12-08 02:47

I am trying to use inline member functions of a particular class. For example the function declaration and implementation without inlining is as such:

in the header

5条回答
  •  旧巷少年郎
    2020-12-08 03:26

    See the Inline Guard Macro idiom. This will at least allow you to separate, albeit slightly, the code from the declaration. It also allows you to toggle inlining of functions via a define.

提交回复
热议问题