Why are inline constructors and destructors not a good idea in C++?

后端 未结 5 2090
夕颜
夕颜 2021-02-01 21:20

I remember reading in one of the C++ books (quite some time ago) that it is not a good idea to have inline Constructors and Destructors especially for derived class. I understa

5条回答
  •  刺人心
    刺人心 (楼主)
    2021-02-01 21:54

    There's absolutely no reason whatsoever to avoid inline constructors and destructors. The book is wrong as wrong can be.

提交回复
热议问题