From dc508d1ff0607285d8b4df8a71805be28ef5b8f5 Mon Sep 17 00:00:00 2001 From: MITSUNARI Shigeo Date: Wed, 31 Aug 2016 10:59:53 +0900 Subject: always hex string with prefix 0x --- sample/bls_smpl.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sample/bls_smpl.cpp') diff --git a/sample/bls_smpl.cpp b/sample/bls_smpl.cpp index dd73ed3..f87294b 100644 --- a/sample/bls_smpl.cpp +++ b/sample/bls_smpl.cpp @@ -21,7 +21,7 @@ void save(const std::string& file, const T& t, const bls::Id& id = 0) { const std::string name = makeName(file, id); std::ofstream ofs(name.c_str(), std::ios::binary); - if (!(ofs << std::hex << std::showbase << t)) { + if (!(ofs << t)) { throw cybozu::Exception("can't save") << name; } } -- cgit v1.2.3