summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/utils.h6
1 files changed, 6 insertions, 0 deletions
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;
}