News for hackers. Stuff that matters.
Re:The C++14 Standard: What You Need to Know by Ragnarork on Wednesday September 17, 2014 @10:02AM (#8329962)
You should look at "Back to the Basics! Essentials of Modern C++ Style" talk from Herb Sutter at CppCon 2014[1]. You'd have a great insight on why 'auto' isn't just some kind of "convenience" keyword and why it matters.

[1] https://github.com/CppCon/CppCon2014/blob/master/Presentatio...

Re:The C++14 Standard: What You Need to Know by millstone on Thursday September 18, 2014 @01:37AM (#8333881)
I disagree very strongly with the argument presented there - in fact, I think it provides enough rope to hang itself.

It says:

1. With deduction you always get right type

2. Deduction guarantees no implicit conversion will happen

From this we can conclude that "the right type" never involves an implicit conversion. This is false: see vector<bool>::operator[], or consider the fact that auto allows you to make a variable of a type you cannot name explicitly (i.e. is private), which is surely not "the right type!"

Re:The C++14 Standard: What You Need to Know by ansgri on Wednesday September 17, 2014 @03:04PM (#8331761)
Thanks for the link! Now I know what to tell my students next time. C++ is the language of choice for recognition systems development anyway, and with C++14 it's actually starting to become beautiful.
Re:The C++14 Standard: What You Need to Know by pjmlp on Thursday September 18, 2014 @03:34AM (#8334138)
C++11 and C++14 removed many of my complaints about the language (I use it on and off since 1993). Still waiting for modules though.

The biggest problem are the pre-C++98 codebases or the ones full with C idioms instead of modern C++.

Those aren't going away anytime soon.

Re:The C++14 Standard: What You Need to Know by Ragnarork on Thursday September 18, 2014 @04:07AM (#8334203)
> The biggest problem are the pre-C++98 codebases or the ones full with C idioms instead of modern C++.

Thanks for pointing that out. THIS is the real problem of C++. Not the language spec (though it can and has to be improved with time), but those codebases, which incidentally make perfectly sane people go nuts about C++... :)

Re:The C++14 Standard: What You Need to Know by JoeAltmaier on Wednesday September 17, 2014 @10:07AM (#8330001)
Oh I see it can matter. But it may become intractable. Using 'const' matters, but few achieve it - even std library methods rarely use it for immutable arguments, so if I try to use const I end up casting to non-const to call down.
Re:The C++14 Standard: What You Need to Know by vinkelhake on Wednesday September 17, 2014 @10:13AM (#8330043)
> even std library methods rarely use it for immutable arguments

Can you give some examples of methods in the standard library that should use const, but doesn't?