X-Git-Url: https://git.llucax.com/z.facultad/75.42/plaqui.git/blobdiff_plain/f27c218d18ebf7198e07249aca1eed625da914fd..e4f66a8221e3f2156d89a7a358073863503b2564:/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