GCC 11 and newer sets it correctly. Also it often doesn't make sense to check for C++ version, usually you care more about specific features being supported.
↧