Only gcc 4.7 and above (and therefore avr-gcc 4.7 and above) support C++11.
Should I jump right in and learn C++11? Can I assume that most of what I'd want to do (ie: not very complex) will be supported by the 1.5 series of the Arduino IDE? Or should I stick to learning older versions?
I'm going to have to learn C++. :Should I jump right in and learn C++11?
Well the problem is, the compiler released with the Arduino 1.5.4 beta release is still the 4.3.2 compiler that they've stuck with for years.
So, unfortunately, you are stuck at C++98 (well you could populate your own system with the newer compiler, but you wouldn't be able to share your code with the majority of users).
I would expect that most of "beginner level" C++ would be common to C++11 AND older versions.
error: 'for' loop initial declaration used outside C99 mode
the first thing I need to understand is classes, overloading etc
Arduino is not even C99, only C98?
Does anyone know the particular reason they're sticking to a compiler version over 5 years old rather than the released, stable and fully C++11 compatible 4.8 compiler?
So, Arduino is not even C99, only C98?
Please enter a valid email to subscribe
We need to confirm your email address.
To complete the subscription, please click the link in the
email we just sent you.
Thank you for subscribing!
via Egeo 16