Link-time optimization and inline

前端 未结 6 857
情话喂你
情话喂你 2020-12-08 16:12

In my experience, there\'s lot of code that explicitly uses inline functions, which comes at a tradeoff:

  1. The code becomes less succinct and somewhat less maint
6条回答
  •  醉梦人生
    2020-12-08 17:01

    Item 33 - Scott Myers - 2nd Ed - Effective C++ springs to mind.

    You must bear in mind the keyword static wrt inline! Now there is a hornets nest!

提交回复
热议问题