Tom Lane <[email protected]> writes: > Yuri <[email protected]> writes: >> Expected behavior: > >> * |AX_CXX_COMPILE_STDCXX| should automatically detect and use the >> highest supported standard if the user does not provide any flags. > > Is "highest supported standard" really the right decision rule? > I would personally have expected "use the compiler's default", > if no other guide is available.
It's actually unsafe as well, because a compiler may support newer -std=XYZ but it could be experimental at least wrt ABI. GCC does that and I think Clang does as well (at least for libstdc++, it has no choice). So, say, -std=c++26 being supported by the compiler doesn't mean it should be used. > [...] sam
signature.asc
Description: PGP signature
