From 70941cbd4a64f15df76a327d88e133429f76d4ea Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Tue, 13 Mar 2012 10:34:26 -0500 Subject: Added to_string(std::size_t) --- src/utils.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/utils.h') diff --git a/src/utils.h b/src/utils.h index efa203c7..2feb73b7 100644 --- a/src/utils.h +++ b/src/utils.h @@ -284,6 +284,12 @@ inline string to_string(long num) { return buf.str(); } +inline string to_string(std::size_t num) { + std::ostringstream buf; + buf << num; + return buf.str(); +} + inline string operator+(const char * left, const string& right) { return string(left) + right; } -- cgit v1.2.3