cplusplus.com cplusplus.com
cplusplus.com   C++ : Forums : General C++ Programming : Where to put the inline keyword : Page 2
  Search:
- -
C++
Information
Documentation
Reference
Articles
Sourcecode
Forums
Forums
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programm...
Articles
Lounge
Jobs

-

post  Where to put the inline keyword

Grey Wolf (639)
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.
|
ropez (312)
See also:
http://groups.google.com/group/comp.lang.c++.moderated/browse_thread/thread/ac9883767a5b5855/0aa5b7158ee2a8c3
|
nezi (9)
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.
|

Pages: 1 2


This topic is archived - New replies not allowed.
Home page | Privacy policy
© cplusplus.com, 2000-2009 - All rights reserved - v2.2
Spotted an error? contact us