Added to_string() and operator+(const char *, string)

This commit is contained in:
John Wiegley 2012-03-09 01:28:51 -06:00
parent 77484f1c17
commit c62ceeef5a

View file

@ -278,6 +278,16 @@ extern string empty_string;
strings_list split_arguments(const char * line);
inline string to_string(long num) {
std::ostringstream buf;
buf << num;
return buf.str();
}
inline string operator+(const char * left, const string& right) {
return string(left) + right;
}
} // namespace ledger
/*@}*/