From 49e1b0a11e3337ef37152eefc0f119c76cb91ff3 Mon Sep 17 00:00:00 2001 From: Lukas Berk Date: Mon, 1 Aug 2011 09:50:01 -0400 Subject: [PATCH] Restore stream state * util.h: retore stream state back to std::dec --- util.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/util.h b/util.h index 49215d5d9..ab062a521 100644 --- a/util.h +++ b/util.h @@ -111,7 +111,7 @@ inline std::string lex_cast_hex(IN const & in) { std::ostringstream ss; - if (!(ss << std::showbase << std::hex << in)) + if (!(ss << std::showbase << std::hex << in << std::dec)) throw std::runtime_error(_("bad lexical cast")); return ss.str(); } -- 2.43.5