Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

In my experience you stick with a certain version, even as new stuff comes up. My current work is in C++14 and will not move to newer versions.


What are the reasons for not moving? We are currently on C++ 17 and we need to support Windows, macOS,iOS and android.


One reason: consistency. When you introduce new features, idioms shift and maintaining code that uses multiple idioms for similar purposes is simply less fun. In the worst case you make changes harder because you now have to make your changes compatible with more modes of usage.


Dependency (sometimes even binary dependency) with a library that doesn't support newer standard can be an issue. Not all compilers guarantee interoperability, and even with those that do there can be bugs.


An IT department that controls compiler upgrades, in my case :/. We're still stuck on not-quite-C++11 because we're still stuck on g++-4.3


No plans to move ever, or just sticking to it for a while? The latter is perfectly reasonable, the former seems a great way to end up with technical debt: at some point compilers might (although it is admittedly very unlikely at least for gcc) drop support for older standards, 3rd party libraries as well(this is much more likely).




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: