mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-01-10 04:07:52 +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
|