To inline or not to inline
I've been writing a few classes lately; and I was wondering whether it's bad practice, bad for performance, breaks encapsulation or whether there's anything else inherently bad with actually defining some of the smaller member functions inside a header (I did try Google!). Here's an example I have of a header I've written with a lot of this: class Scheduler { public: typedef std::list<BSubsystem*> SubsystemList; // Make sure the pointer to entityManager is zero on init // so that we can check if one has been attached in Tick() Scheduler() : entityManager(0) { } // Attaches a manager to the