Isn't C++'s inline totally optional?

后端 未结 4 1037
后悔当初
后悔当初 2020-12-08 01:24

I have a class that had an inline member, but I later decided that I wanted to remove the implementation from the headers so I moved the members body of the functions out to

4条回答
  •  有刺的猬
    2020-12-08 01:55

    Point to note: when method is declared inline, its definition MUST be together with its declaration.

提交回复
热议问题