Are there any compilers that IGNORE C++ standard about default inline functions?

前端 未结 5 600
忘了有多久
忘了有多久 2021-01-25 08:17

C++ ISO standard says, that:

\"A function defined within a class definition is an inline function.\"

Are there any compilers that IGNORE th

5条回答
  •  温柔的废话
    2021-01-25 08:53

    See my answer to a very similar question: When is "inline" ineffective? (in C)

    Summary: inline is only required to allow multiple definitions. Any function calling changes is purely optional.

提交回复
热议问题