mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-04-28 11:47:48 +02:00
moved std::to_string to util.h from android
This commit is contained in:
parent
07cc547bab
commit
a5be4c9d0e
7 changed files with 19 additions and 54 deletions
11
util.h
11
util.h
|
@ -7,6 +7,17 @@
|
|||
#include <boost/asio.hpp>
|
||||
#include <boost/lexical_cast.hpp>
|
||||
|
||||
#ifdef ANDROID
|
||||
namespace std
|
||||
{
|
||||
template <typename T>
|
||||
std::string to_string(T value)
|
||||
{
|
||||
return boost::lexical_cast<std::string>(value);
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
namespace i2p
|
||||
{
|
||||
namespace util
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue