1
0
mirror of https://github.com/PurpleI2P/i2pd.git synced 2025-01-10 04:07:52 +00:00
i2pd/qt/i2pd_qt/to_string.h

20 lines
271 B
C
Raw Normal View History

2016-06-14 00:52:17 +00:00
#ifndef TO_STRING_H
#define TO_STRING_H
#include <string>
#include <sstream>
namespace tostr {
template <typename T>
std::string to_string(T value)
{
std::ostringstream os ;
os << value ;
return os.str() ;
}
}
using namespace tostr;
#endif // TO_STRING_H