diff --git a/include/blt/std/string.h b/include/blt/std/string.h index cea9f6a..2611f5b 100755 --- a/include/blt/std/string.h +++ b/include/blt/std/string.h @@ -35,6 +35,14 @@ namespace blt::string { StringBuffer& operator<<(char c); + template + inline StringBuffer& operator<<(T t) { + auto str = std::to_string(t); + for (char c : str) + *this << c; + return *this; + } + ~StringBuffer() { free(characterBuffer); }