From 4edfc4f0c2ecbffaecab6661b6fa2cce486a10de Mon Sep 17 00:00:00 2001 From: Tomasz Grabiec Date: Fri, 17 Oct 2014 14:17:00 +0200 Subject: [PATCH] core: implement to_sstring(const char*) --- core/sstring.hh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/core/sstring.hh b/core/sstring.hh index ee897e2a96..b127e5ae96 100644 --- a/core/sstring.hh +++ b/core/sstring.hh @@ -243,6 +243,12 @@ string_type to_sstring(unsigned long long value, void* = nullptr) { return to_sstring_sprintf(value, "%llu"); } +template +inline +string_type to_sstring(const char* value, void* = nullptr) { + return string_type(value); +} + template inline std::ostream& operator<<(std::ostream& os, const std::vector& v) {