summaryrefslogtreecommitdiff
path: root/src/utils.h
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2012-03-13 10:34:26 -0500
committerJohn Wiegley <johnw@newartisans.com>2012-03-13 10:34:26 -0500
commit70941cbd4a64f15df76a327d88e133429f76d4ea (patch)
tree5541ae9512b0001affc549e1a8837e47c7aea89f /src/utils.h
parenta9c387377b796ecfca6d3f222d03e8e2f838f274 (diff)
downloadfork-ledger-70941cbd4a64f15df76a327d88e133429f76d4ea.tar.gz
fork-ledger-70941cbd4a64f15df76a327d88e133429f76d4ea.tar.bz2
fork-ledger-70941cbd4a64f15df76a327d88e133429f76d4ea.zip
Added to_string(std::size_t)
Diffstat (limited to 'src/utils.h')
-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;
}