C++: Drawbacks to writing whole classes in Header files for small projects?
问题 Just a style question... I'm a lowly indie game dev working by myself, and I developed what I have been told is a 'bad' habit of writing whole classes in my headers. Some of the benefits I know .h/.cpp file combos have are they allow code to be split into compilation chunks that won't need recompiled so long as they remain unchanged. And allows for splitting interface from implementation. However, neither of those things are of any benefit to me, since I tend to favour having my