From b5828dc750321e85cd7245ad86d13299c334f02e Mon Sep 17 00:00:00 2001 From: Daniel Larimer Date: Tue, 20 May 2014 12:31:05 -0400 Subject: [PATCH] adding extra to_string variants --- include/fc/string.hpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/fc/string.hpp b/include/fc/string.hpp index ff5207b..b262c90 100644 --- a/include/fc/string.hpp +++ b/include/fc/string.hpp @@ -16,6 +16,8 @@ namespace fc fc::string to_string( uint64_t ); fc::string to_string( int64_t ); fc::string to_string( uint16_t ); + inline fc::string to_string( int32_t v ) { return to_string( int64_t(v) ); } + inline fc::string to_string( uint32_t v ){ return to_string( uint64_t(v) ); } #ifdef __APPLE__ inline fc::string to_string( size_t s) { return to_string(uint64_t(s)); } #elif defined( WIN32 )