We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I tried to use the new c++11 syntax with the default string class from arduino. Actually it fails because it has no begin or end.
begin
end
Test-IDE: 1.6.8 (Win8.1 x64) Board: Uno
Example code:
String temp = "abc"; for (auto tempchar : temp) { Serial.println(tempchar); }
Error:
error: 'begin' was not declared in this scope for (auto tempchar : temp) { error: 'end' was not declared in this scope
Reference: http://en.cppreference.com/w/cpp/language/range-for
Best
The text was updated successfully, but these errors were encountered:
This was already "discussed" somewhere else. No answer as I remember. I also suggest to add this feature.
Sorry, something went wrong.
I have a PR hanging around: #2179
I proposed this before C++11 was enabled (2014). Would be nice to see this finally merged.
While we're on the subject of the String class: #3096...
Fixed with #2179
No branches or pull requests
I tried to use the new c++11 syntax with the default string class from arduino. Actually it fails because it has no
begin
orend
.Test-IDE: 1.6.8 (Win8.1 x64)
Board: Uno
Example code:
Error:
Reference:
http://en.cppreference.com/w/cpp/language/range-for
Best
The text was updated successfully, but these errors were encountered: