A helper class. More...
A helper class.
Ensures a streambuf and ostream are constructed and destroyed in the correct order. The streambuf must be created before the ostream but bases are constructed before members. Thus, making this class a private base of logstream, declared to the left of ostream, we ensure the correct order of construction and destruction.