mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2024-11-08 01:10:40 +00:00
20 lines
271 B
C++
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
|