From e5ed3af959409684e35eb20a038a35269166a313 Mon Sep 17 00:00:00 2001 From: Jason Hiser <jdhiser@gmail.com> Date: Thu, 31 Jan 2019 19:44:32 -0500 Subject: [PATCH] fixed issue for centos build --- include/inc-util/utils.hpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/include/inc-util/utils.hpp b/include/inc-util/utils.hpp index ef0a998..ef63fab 100644 --- a/include/inc-util/utils.hpp +++ b/include/inc-util/utils.hpp @@ -1,3 +1,4 @@ +#include <sstream> namespace IRDB_SDK { @@ -7,7 +8,7 @@ namespace IRDB_SDK template <class T> inline string to_hex_string (const T& t) { - stringstream ss(); + stringstream ss; ss << hex << t; return ss.str(); } @@ -16,7 +17,7 @@ namespace IRDB_SDK template<class T> inline T strtoint(const string& s) { - auto str=stringstream(s); + stringstream str(s); auto off=T(); str >> off; -- GitLab