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