Commit 49776d0b authored by Michael Zbyszyński's avatar Michael Zbyszyński
Browse files

android workaround

parent 3647820d
......@@ -18,6 +18,26 @@
#include "../dependencies/json/json.h"
#ifdef __ANDROID__
#include <ostream>
namespace std
{ // Workaround for android
template <typename T>
std::string to_string(T Value)
std::ostringstream TempStream;
TempStream << Value;
return TempStream.str();
inline long double strtold(const char * str, char ** str_end)
return strtod(str, str_end);
/** Base class for wekinator models. Implemented by NN and KNN classes */
template<typename T>
class baseModel {
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment