You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
i2pd/qt/i2pd_qt/to_string.h

20 lines
271 B
C++

#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