Skip to content
This repository has been archived by the owner on Mar 29, 2019. It is now read-only.

Don't write to cerr or stdout from library code #5

Open
indygreg opened this issue Mar 1, 2012 · 0 comments
Open

Don't write to cerr or stdout from library code #5

indygreg opened this issue Mar 1, 2012 · 0 comments
Labels

Comments

@indygreg
Copy link

indygreg commented Mar 1, 2012

You should never write directly to cerr or cout from within a library. Instead, pass a ::std::ostream or something to your class constructor (or maintain a static instance in the class). At library run-time, you can assign cout, etc to this.

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

No branches or pull requests

1 participant