aboutsummaryrefslogtreecommitdiffstats
path: root/libdevcore
diff options
context:
space:
mode:
authorAlex Beregszaszi <alex@rtfs.hu>2017-08-22 20:55:01 +0800
committerAlex Beregszaszi <alex@rtfs.hu>2017-08-22 20:55:01 +0800
commitf38429fef88b644e9c54c1bf2a1abe754dbd324d (patch)
tree31bff39b5b8334c0780f3220d249c2e3efe75c0d /libdevcore
parent97169e58ae44e763323f2554f124eaf1ff3db508 (diff)
downloaddexon-solidity-f38429fef88b644e9c54c1bf2a1abe754dbd324d.tar
dexon-solidity-f38429fef88b644e9c54c1bf2a1abe754dbd324d.tar.gz
dexon-solidity-f38429fef88b644e9c54c1bf2a1abe754dbd324d.tar.bz2
dexon-solidity-f38429fef88b644e9c54c1bf2a1abe754dbd324d.tar.lz
dexon-solidity-f38429fef88b644e9c54c1bf2a1abe754dbd324d.tar.xz
dexon-solidity-f38429fef88b644e9c54c1bf2a1abe754dbd324d.tar.zst
dexon-solidity-f38429fef88b644e9c54c1bf2a1abe754dbd324d.zip
Switch stream properties back after temporary modification
Diffstat (limited to 'libdevcore')
-rw-r--r--libdevcore/FixedHash.h2
1 files changed, 2 insertions, 0 deletions
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 <cstdint>
#include <algorithm>
#include <boost/functional/hash.hpp>
+#include <boost/io/ios_state.hpp>
#include "CommonData.h"
namespace dev
@@ -224,6 +225,7 @@ template<> inline size_t FixedHash<32>::hash::operator()(FixedHash<32> const& va
template <unsigned N>
inline std::ostream& operator<<(std::ostream& _out, FixedHash<N> 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];