0

would there be anything wrong with making an includes.h which has all of the .h files my project needs to link to.
or is it better to link to them when needed?

3
Contributors
3
Replies
4
Views
7 Years
Discussion Span
Last Post by MattyRobot
0

There's nothing wrong with it per se, but it's generally wiser not to confuse your readers with frivolous includes that aren't used in the file.

0

Well, I don't think it is necessarily 'bad', however if someone were to try and use your code as an example, it would be hard for the user to understand what files to include to do what you are doing. (Basically what Narue said).

As well, it may slow your application down. However, I am not entirely sure about this.

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.