Skip to content

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