extern inline

y2bismil@engmail.uwaterloo.ca y2bismil@engmail.uwaterloo.ca
Thu Nov 27 22:06:00 GMT 2003



Hi all,

I was wondering about extern inline.  Can this really do inlining when the
implementation exists in another object file?

Like if I declare a function inline in a.h with attribute always_inline
I then use the function in b.cpp
But I implement it in c.cpp

I have hard time thinking this is truly possible, but maybe it is.  I suspect,
in b.cpp, the inlining will fail and it will resort to a regular call in object
file for c.cpp correct?

Yamin

----------------------------------------
This mail sent through www.mywaterloo.ca



More information about the Gcc-help mailing list