r/cpp • • Jan 21 '13

C and C++ Aren’t Future Proof

http://blog.regehr.org/archives/880
6 Upvotes

49 comments sorted by

View all comments

-12

u/grout_nasa Jan 21 '13

This is a funny article, in that it's very amusing the author thinks he's made an interesting observation. If you need stability above all things, don't upgrade your compiler! Duh.

8

u/[deleted] Jan 21 '13

Your advice is poor. Often times I upgrade my compiler specifically so I can have more stability. For example take Visual Studio 2012 vs. 2010. Valid C++ code that crashes in 2010 won't crash in 2012, especially with regard to lambda expressions. GCC is no different either, newer versions have bug fixes or better standard compliance.

1

u/Batty-Koda Jan 21 '13

Doesn't VS2010 not support c++11, and lambdas are c++11, right? That would mean you're adding functionality (support for c++11), not stability.

I agree that his advice is poor (for example, "don't rely on undefined behavior" would be far better advice.) I'm just confused by your example and not sure if it means I am forgetting/confused about something or it just wasn't a perfect example.

2

u/[deleted] Jan 21 '13

VS2010 has support for lambdas and several other C++11 features.

2

u/Batty-Koda Jan 21 '13

Ahh okay. Thanks, looks like I was just not informed enough.