4 ms·
C++14 is a safe bet. C++17 is almost pushing it. C++23 isn't even fully implemented by any compiler. I tend to default to C++11 with C++[11,23]-portability. I
by 1letterunixname 3y ago
C++14 is a safe bet. C++17 is almost pushing it. C++23 isn't even fully implemented by any compiler.
I tend to default to C++11 with C++[11,23]-portability.
In general, write maximally portable code without using vendor- or standard-specific features without a/some very good reason(s).
Also, C++11 is a monumental improvement over C++ from the days of rusty sharp edges of 90's C++ where one needed to follow strict standards to avoid nonobvious UB.