News for hackers. Stuff that matters.
Re:C++ basics for competitive programming by forrestthewoods on Friday March 04, 2016 @01:57PM (#11226003)
People on C++03 where vector<vector<int>> is defined as operator >>. This wasn't fixed until C++11.

https://en.wikipedia.org/wiki/C%2B%2B11#Right_angle_bracket

Re:C++ basics for competitive programming by static_noise on Friday March 04, 2016 @02:16PM (#11226161)
Don't use C++03 in 2016 please.
Re:C++ basics for competitive programming by jjnoakes on Friday March 04, 2016 @03:51PM (#11226763)
Not all of us have the luxury of using the latest compilers. Or the systems we support don't even have compilers which handle anything newer than C++03.

Do you think compiler support is instantaneous for all platforms on all operating systems, retroactively, when the standard is published?

Re:C++ basics for competitive programming by xorblurb on Friday March 04, 2016 @04:15PM (#11226913)
instantaneous != retroactively, neither it is the same as "5 years after".

And all major compiler vendors have since learned that they need to be up to date with the standard ASAP, even before official publication when it is possible.

Advocating C++ < 11 is harmful to the community, given how bad it was at that time.

Re:C++ basics for competitive programming by jjnoakes on Tuesday March 08, 2016 @08:21AM (#11245010)
Suggesting that compilers immediately adopt the latest standards is the "instantaneous".

Suggesting that older versions of the compilers (which may be the latest available versions on certain systems) also do so is the "retroactive".

So no, they are not the same. But yes, they are both reasons why one can not just blindly start using the latest features from the latest standards.

Re:C++ basics for competitive programming by hikarudo on Friday March 04, 2016 @02:39PM (#11226337)
Except if the compiler for your target platform (cough TI DSP cough) supports only C++03, and never will support anything newer.
Re:C++ basics for competitive programming by whitegrape on Friday March 04, 2016 @02:54PM (#11226449)
> Don't use C++ in 2016 please.

Fixed that for you.

Re:C++ basics for competitive programming by ska on Friday March 04, 2016 @03:13PM (#11226573)
No, you really didn't.

For all it's problems (some of which are being addressed in recent standard update , some not so much yet) it remains the best available tool for some domains. More's the pity.

Re:C++ basics for competitive programming by 1024core on Friday March 04, 2016 @03:14PM (#11226578)
Seriously. C++ seems like a layer of hacks, one upon another, each designed to "fix" things in the layers below, only to add more confusion. Maybe "D" is the answer, or Go...? I don't know.

I started with C++ a long time ago, but for whatever reason, kept getting out of it (for a few years) and then every time I'd get back in, I'd be surprised at the new stuff.