From 64b7c42c71c35d520424cf4ca5ecaa99faef8b26 Mon Sep 17 00:00:00 2001 From: David Gow Date: Sat, 4 Oct 2014 18:47:43 +0800 Subject: [PATCH 1/1] Compile with float/double again. --- src/real.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/real.h b/src/real.h index e4d594e..917f3e0 100644 --- a/src/real.h +++ b/src/real.h @@ -61,11 +61,11 @@ namespace IPDF #if REALTYPE == REAL_SINGLE typedef float Real; inline Real RealFromStr(const char * str) {return strtof(str, NULL);} - //inline std::string Str(const Real & a) {std::stringstream s; s << a; return s.str();} + inline std::string Str(const Real & a) {std::stringstream s; s << a; return s.str();} #elif REALTYPE == REAL_DOUBLE typedef double Real; inline Real RealFromStr(const char * str) {return strtod(str, NULL);} - //inline std::string Str(const Real & a) {std::stringstream s; s << a; return s.str();} + inline std::string Str(const Real & a) {std::stringstream s; s << a; return s.str();} #elif REALTYPE == REAL_LONG_DOUBLE typedef long double Real; inline Real RealFromStr(const char * str) {return strtold(str, NULL);} -- 2.20.1