+ 3

Will inlining work with classes methods in cpp?

Hello everyone! I have some question from oop theme in cpp: if I define some method of class as inline, will code of this method be inserted in places where this method is called in main, for example, as usual inline function?

4th Sep 2019, 7:01 PM
Dmitrii
1 Réponse
+ 5
I think not because I did it with private members (inline public methods revoking private one) and it works properly
4th Sep 2019, 7:08 PM
ABADA S
ABADA S - avatar