When should I use __forceinline instead of inline?

前端 未结 12 1421
旧巷少年郎
旧巷少年郎 2021-01-01 09:34

Visual Studio includes support for __forceinline. The Microsoft Visual Studio 2005 documentation states:

The __forceinline keyword overrides the co

12条回答
  •  清歌不尽
    2021-01-01 09:55

    The inline directive will be totally of no use when used for functions which are:

    recursive, long, composed of loops,

    If you want to force this decision using __forceinline

提交回复
热议问题