X-Git-Url: https://git.llucax.com/z.facultad/75.42/plaqui.git/blobdiff_plain/f27c218d18ebf7198e07249aca1eed625da914fd..eb95b779b5006ce4ef16ee1ffc1d15557d31ccef:/Server/src/string.cpp?ds=inline diff --git a/Server/src/string.cpp b/Server/src/string.cpp index 97dd19f..8f9b2db 100644 --- a/Server/src/string.cpp +++ b/Server/src/string.cpp @@ -93,6 +93,21 @@ String String::join(const vector& v, const string& sep) { return ss.str(); } +/* +template < class T > T& String::to(T& p) const { + stringstream ss(*this); + ss >> p; + return p; +} + +template < class T > String& String::from(const T& p) { + stringstream ss; + ss << p; + ss >> (*this); + return *this; +} +*/ + } // namespace Server } // namespace PlaQui