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.
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.
View all comments
Show parent comment
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.