I have a couple of doubts
What is the most widely used standard today?
If I make a program for example in the C++14 standard, will it affect the portability and execution of the code?
I have a couple of doubts
What is the most widely used standard today?
If I make a program for example in the C++14 standard, will it affect the portability and execution of the code?
It is a difficult answer to answer. In my case the current standard is c++11 but in a few months we will change the compiler and use c++14.
In general terms, I assume that something similar will happen to the rest. There are several reasons to get stuck in an old standard:
The C++14 standard introduces some new features compared to c++11, many compared to c++03. Using one of these features will prevent you from being able to compile code to an older standard.
What is the most widely used standard today?
trick question. Without being, by any means, an expert in C++, or a professional in the field, I currently use C++11, mainly because of the great improvements in speed it provides, eliminating many instance copy operations, which were unavoidable with previous standards.
C++11 provides excellent backwards compatibility , so just by recompiling, we get a free efficiency boost .
We can consider it the essential minimum in current projects, especially considering that we are in 2017. That standard is already a few years old.
If I make a program for example in the C++14 standard, will it affect the portability and execution of the code?
Another trick question. The code will compile on any compiler that supports C++14.
If you mean the ease of finding a compiler with support for that standard,
g++
it's free software, ported to more platforms than I've ever seen. It shouldn't be a problem, except for very specific environments .If you mean auxiliary elements , such as bookcases, that's another topic. As a general rule, if they are maintained, they will support the new standards.
As I mentioned, backwards compatibility is very good, so most older software should be fine.