explicit StreamStateSaver(std::ios &stream)
		: stream(stream)
		, state(nullptr)
	{
		// Save the stream's state.
		state.copyfmt(stream);
	}
Exemple #2
0
 ios_guard(std::ios& x) : guarded(x), old(0) { old.copyfmt(guarded); }