Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
Eztero opened this issue Mar 24, 2018 · 1 comment
Open

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

Eztero opened this issue Mar 24, 2018 · 1 comment

Comments

@Eztero
Copy link

Eztero commented Mar 24, 2018

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
Copy link
Author

Eztero commented Mar 24, 2018

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"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant