|
-
June 10th, 2009, 03:16 AM
#1
Inline Members
Sorry for such a simple question. I just want to clarify something.
If a method is defined inside the class declaration, it's automatically considered inline, correct? This would mean that I should avoid doing so except for very simple methods or constructors.
I'm pretty confident about this, but I'm looking at a large amount of code from a program here where all of the class methods are defined inside the class declaration and it didn't make sense to me. The best choice if you don't want to separate the implementation from the declaration would be to define the methods inside the header file, but outside the class declaration, right?
Thanks.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|