Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

using forward declarations for iostream #4

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

eiennohito
Copy link

Forward declaration is sufficient for the library.

It is better for libraries to use forward declarations
instead of full headers.
@imneme
Copy link
Owner

imneme commented Mar 12, 2015

I could merge this, but pcg_extras.hpp includes iostream anyway, so it doesn't save us anything to bring in the forward declarations.

Do you see some big win in making this change?

@eiennohito
Copy link
Author

Forward declarations are 'optimizations' for the compile time and matter for big projects.
And there is a possibility that somebody would not want iostream include at all.
Forward declarations provide least sufficient information for libraries and it is better to use them.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants