From e5daf4ba675f31580a942a6fd581e950fb1bda7c Mon Sep 17 00:00:00 2001 From: Perttu Ahola Date: Sun, 12 Oct 2014 14:08:48 +0300 Subject: [PATCH] core/types.h: Fix build problem --- src/core/types.h | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/src/core/types.h b/src/core/types.h index 538edc5..5ab6b92 100644 --- a/src/core/types.h +++ b/src/core/types.h @@ -84,7 +84,7 @@ static inline ss_ ftos(float f){ #define SLEN(x) (sizeof(x)/sizeof((x)[0])) template -ss_ dump(const T &v); +static inline ss_ dump(const T &v); template<> inline ss_ dump(const double &v){ @@ -101,8 +101,13 @@ inline ss_ dump(const uint64_t &v){ return itos(v); } +template<> +inline ss_ dump(const uint8_t &v){ + return itos(v); +} + template -ss_ dump(const sv_ &vs){ +static inline ss_ dump(const sv_ &vs){ std::ostringstream os(std::ios::binary); os<<"["; bool first = true; @@ -117,7 +122,7 @@ ss_ dump(const sv_ &vs){ } template -ss_ dump(const std::set &vs){ +static inline ss_ dump(const std::set &vs){ std::ostringstream os(std::ios::binary); os<<"("; bool first = true;