quote:Original post by Enselicquote:Original post by dmikesell
Putting the implementation in the header file creates unnecessary dependencies between classes. Keep the header file limited to interface, and put the implementation in the .cpp file. Do a Google search on "pimpl idiom" for a preferred way to do this.
--
Dave Mikesell
d.mikesell@computer.org
http://davemikesell.com
Even in my case? In what way does it become unnucessary dependencies?
I''m assuming it has to do with the fact that it''s no longer just a class declaration, but contains actual code now. So, now that it actually contains sources, it is created extra dependancies for each file that includes it.