Problem in Inline Function

nishu's Avatar
Go4Expert Member
It is said that inline functions must be used when our function has short code. My question is what is the meaning of short code?I mean how many lines of code is permitted in inline functions.
0
harimagic's Avatar, Join Date: Oct 2007
Go4Expert Member
Inline function should be as much as shorter. Like nearly 6 to 10 lines. Remember that inline function should not contain any loops in the function. Loops in the sense for() while() etc..

For further information refer

<<http://www.parashift.com/c++-faq-lite/inline-functions.html>>
0
nishu's Avatar
Go4Expert Member
thank you so much.