|
-
November 7th, 2012, 12:50 PM
#4
Re: code in dot H files
 Originally Posted by bkelly
Question:
Is there a possible advantage in writing the code in the dot H file rather than the dot CPP file?
Seems to me its better to put all the code in one place.
 Originally Posted by bkelly
No, it is definately not template code.
Then I don't see any advantage in putting the implementation code in the dot H file.
Instead, there is a disadvantage: if you change something in the implementation being in .h file then all the cpp files that #include this header will be recompiled.
Victor Nijegorodov
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
|