Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[C++] Moving classes to header files
#7
That's how I've always done it.

The advantage/disadvantage stems from when you're going to include the header, because in a subtle way you're prepending the entirety of your includes onto the files they're included in and if you've only got the declarations and pointers in the header you're theoretically not including the whole enchilada in every file that the include is used in.

As far as I know that's all hooey thanks to modern compilers anyhow, since it does all the cross linking and assembling and doesn't actually shove the complete code in multiple places over and over.

Ultimately it's likely stylistic preference and comfortable organizational structure and nothing more.
Reply


Messages In This Thread
[C++] Moving classes to header files - by Dusk - 2010-05-07, 09:34 PM
[C++] Moving classes to header files - by Eos - 2010-05-07, 09:41 PM
[C++] Moving classes to header files - by Eos - 2010-05-08, 12:40 AM
[C++] Moving classes to header files - by Russt - 2010-05-09, 12:18 AM
[C++] Moving classes to header files - by Eos - 2010-05-09, 12:25 AM
[C++] Moving classes to header files - by Spaz - 2010-05-09, 01:08 AM
[C++] Moving classes to header files - by Eos - 2010-05-09, 01:13 AM
[C++] Moving classes to header files - by Russt - 2010-05-20, 09:55 PM

Forum Jump:


Users browsing this thread: 2 Guest(s)