Which one is better with reference to having an optimally functioning compiler in C++? Inline function or Not-inline function. | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Which one is better with reference to having an optimally functioning compiler in C++? Inline function or Not-inline function.

~ just wondering ~

18th Oct 2018, 2:38 AM
Manasa Batiwale
Manasa Batiwale - avatar
2 Answers
+ 1
If I got you right you just want the compiler to compile without warnings and errors!? In this case it definitely doesn't matter. Inline functions should just be used for small macros anyway, frequent use would lead to large executables.
18th Oct 2018, 5:09 AM
Aaron Eberhardt
Aaron Eberhardt - avatar
+ 1
Thanks Aaron 😊 Satisfied my curiosity 😉
18th Oct 2018, 5:54 AM
Manasa Batiwale
Manasa Batiwale - avatar