D
D. Susman
Hi,
Isn't the whole point of inline functions "to try to eliminate
function call overhead by simply substituting the call with the
function body"? And I know it is a safer substitution than macros.
But I came across this paragraph below in the site "Programming in C+
+, Rules and Recommendations" and got confused:
"Functions, which invoke other inline functions, often become too
complex for the compiler to be able to make them inline despite their
apparent smallness."
If so, what are inline functions good for? For accessor methods
mostly?
Thanks.
Isn't the whole point of inline functions "to try to eliminate
function call overhead by simply substituting the call with the
function body"? And I know it is a safer substitution than macros.
But I came across this paragraph below in the site "Programming in C+
+, Rules and Recommendations" and got confused:
"Functions, which invoke other inline functions, often become too
complex for the compiler to be able to make them inline despite their
apparent smallness."
If so, what are inline functions good for? For accessor methods
mostly?
Thanks.