mirror of https://github.com/PurpleI2P/i2pd
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.
20 lines
271 B
C
20 lines
271 B
C
8 years ago
|
#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
|