Where to put the inline keyword

Pages: 12
closed account (z05DSL3A)
It dose mean that you have to maintain two versions, but as I only inline the most basic code (and shortest) it is not much of a chore, plus I never inline anything until it works and it *needs* to be optimised. The reason do this probably comes from a long time ago (we’re talking DOS/Win3.1 era), the compiler/debugger used to inline assembly when you debugged.

The thing is I have not done any serious C++ work for nearly two years, I have been doing C#/.net, so with the advent of Microsoft’s implementation of TR1 I decided to re-learn C++/STL/… and try to drop some bad habits. I will spend some time rethinking and exploring inline, this has been an enlightening discussion.
Thanks to all of you for your great discussion about this topic.And I know that it's not a good practice to put function declarations on the same line .I did it only in the post.Thanks to remind me this thing.I am beginner to C++.So I have such kind of doubts in my mind.Keep responding.
Happy Programming!
Thank you so much.
Topic archived. No new replies allowed.
Pages: 12