From f38429fef88b644e9c54c1bf2a1abe754dbd324d Mon Sep 17 00:00:00 2001 From: Alex Beregszaszi Date: Tue, 22 Aug 2017 13:55:01 +0100 Subject: Switch stream properties back after temporary modification --- libdevcore/FixedHash.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'libdevcore/FixedHash.h') diff --git a/libdevcore/FixedHash.h b/libdevcore/FixedHash.h index 1c37b675..141e9ffd 100644 --- a/libdevcore/FixedHash.h +++ b/libdevcore/FixedHash.h @@ -27,6 +27,7 @@ #include #include #include +#include #include "CommonData.h" namespace dev @@ -224,6 +225,7 @@ template<> inline size_t FixedHash<32>::hash::operator()(FixedHash<32> const& va template inline std::ostream& operator<<(std::ostream& _out, FixedHash const& _h) { + boost::io::ios_all_saver guard(_out); _out << std::noshowbase << std::hex << std::setfill('0'); for (unsigned i = 0; i < N; ++i) _out << std::setw(2) << (int)_h[i]; -- cgit v1.2.3