3 ms·
Another Reason to Avoid #includes in Headers
- pif 14y ago> So please try to move your #includes down into the cpp files whenever you can! It's OK within your code, but not in your public interface. For example: Type& GetValue(); Sure, you don't need Type to be fully defined when you declare GetValue. But it's very likely that your users will need it when they use your function. So, please, for their sake, have your header files include everything they will need, and not only what you need. Thanks!