i2pd/qt/i2pd_qt/to_string.h

20 lines
271 B
C
Raw Normal View History

2016-06-14 03:52:17 +03: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