.apk builds. untested

This commit is contained in:
anon5 2016-06-14 08:52:17 +08:00 committed by egp
parent 28c2ca8bf8
commit 58b058ab3a
15 changed files with 314 additions and 10 deletions

View file

@ -8,6 +8,12 @@
#include "Identity.h"
#include "ClientContext.h"
#ifdef ANDROID
# include "to_string.h"
#else
# define to_string(x) std::to_string(x)
#endif
namespace i2p
{
namespace client
@ -292,7 +298,7 @@ namespace client
template<typename Section, typename Type>
std::string ClientContext::GetI2CPOption (const Section& section, const std::string& name, const Type& value) const
{
return section.second.get (boost::property_tree::ptree::path_type (name, '/'), std::to_string (value));
return section.second.get (boost::property_tree::ptree::path_type (name, '/'), to_string (value));
}
template<typename Section>