Inline

Hello.
I'm using borland c++ builder.
What the difference betwen inline and __inline?
The inline is a language feature:
http://en.cppreference.com/w/cpp/language/inline

https://msdn.microsoft.com/en-us/library/bw1hbe6y.aspx
makes __inline sound like implementation-specific.
microsoft's visual studio has several versions of inline including a forceinline. You can remove the __ in your code, presumably it originated on visual.

honestly, removal of inline entirely may be best; the compiler usually makes very good choices and only in extremely rare or odd edge cases does the keyword need to be applied and when applied gives a better result than the default decision. Set your inline compiler optimizations to any suitable or similar and let it do its thing.

Topic archived. No new replies allowed.