binance-exchange / binacpp

Binance C++ library
MIT License
209 stars 108 forks source link

error: ‘to_string’ was not declared in this scope #25

Open Eztero opened 6 years ago

Eztero commented 6 years ago

Hi. I have a problem at moment to compile after of the new update. i get this error of the archive binacpp.cpp

binacpp.cpp:228:39: error: ‘to_string’ was not declared in this scope querystring.append( to_string( limit ) );

binacpp.cpp: In static member function ‘static void BinaCPP::get_aggTrades(const char*, int, time_t, time_t, int, Json::Value&)’:

binacpp.cpp:296:44: error: ‘to_string’ was not declared in this scope querystring.append( to_string( startTime ) ); ^ binacpp.cpp:303:41: error: ‘to_string’ was not declared in this scope querystring.append( to_string( fromId ) ); ^ and follow...haha

I see in commits that they deleted a function associated with "to_string" ("static std::string to_string(double val)" and "inline string to_string (const T& t)") in the new update. Could that be the cause of the problem?

Eztero commented 6 years ago

Hello again. for curiosity i put the function "static std::string to_string(double val)" and "inline string to_string (const T& t" again in the binacpp_utils.h and i don't get more this the error :), I compile and work well, apparently. I'm curious about why they removed their functions, because in the code I do not see that they have made change related to "to_string"