pcg-cpp
pcg-cpp copied to clipboard
using forward declarations for iostream
Forward declaration is sufficient for the library.
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?
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.