When is “inline” ineffective? (in C)

前端 未结 12 655
鱼传尺愫
鱼传尺愫 2020-12-09 10:56

Some people love using inline keyword in C, and put big functions in headers. When do you consider this to be ineffective? I consider it s

12条回答
  •  夕颜
    夕颜 (楼主)
    2020-12-09 11:26

    1. inline acts as a hint only.
    2. Added only very recently. So works with only the latest standard compliant compilers.

提交回复
热议问题