core: implement to_sstring(const char*)

This commit is contained in:
Tomasz Grabiec
2014-10-17 14:17:00 +02:00
parent 287ad01f76
commit 4edfc4f0c2

View File

@@ -243,6 +243,12 @@ string_type to_sstring(unsigned long long value, void* = nullptr) {
return to_sstring_sprintf(value, "%llu");
}
template <typename string_type = sstring>
inline
string_type to_sstring(const char* value, void* = nullptr) {
return string_type(value);
}
template <typename T>
inline
std::ostream& operator<<(std::ostream& os, const std::vector<T>& v) {