From ce131bae43277a20c6ec31275b16289233fdb7f5 Mon Sep 17 00:00:00 2001 From: HackFisher Date: Sun, 18 May 2014 16:37:06 +0800 Subject: [PATCH] Fix compile error under windows Error 1 error C2668: 'fc::to_string' : ambiguous call to overloaded function --- include/fc/string.hpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/fc/string.hpp b/include/fc/string.hpp index 889164a..ff5207b 100644 --- a/include/fc/string.hpp +++ b/include/fc/string.hpp @@ -18,6 +18,8 @@ namespace fc fc::string to_string( uint16_t ); #ifdef __APPLE__ inline fc::string to_string( size_t s) { return to_string(uint64_t(s)); } +#elif defined( WIN32 ) + inline fc::string to_string( size_t s ) { return to_string(uint64_t(s)); } #endif typedef fc::optional ostring;