Hi I don't think any of the main compilers have complete C++20 support yet, and defects are still being found in the C++20 standard so it's not completely stable:
GCC partial C++20 support https://gcc.gnu.org/projects/cxx-status.html#cxx20 Clang partial C++20 support https://clang.llvm.org/cxx_status.html#cxx20 VC++ partial C++20 support https://devblogs.microsoft.com/cppblog/msvc-cpp20-and-the-std-cpp20-switch/ Additionally some defects in the C++20 standard are still being discovered: https://devblogs.microsoft.com/cppblog/msvc-cpp20-and-the-std-cpp20-switch/#iso-c20-continuing-work-defect-reports-and-clarifications It might be ok to use selected C++20 features, but how easy is it to identify which parts of the C++20 standard are stable and are available across the main compilers? Best Regards Mark -- Mark Rogers - mark.rog...@powermapper.com PowerMapper Software Ltd - www.powermapper.com Registered in Scotland No 362274 Quartermile 2 Edinburgh EH3 9GL On 05/05/2022, 08:43, "Francesco Pretto" <cez...@gmail.com> wrote: Hi Christopher, On Thu, 5 May 2022 at 08:16, Christopher Creutzig <ccreu...@mathworks.com> wrote: > > Backporting required parts of std::span and having a layer that switches between std::format and fmtlib shouldn’t be too hard, assuming these are only used internally and nothing in the API expects span inputs, for example. But would we require contributors to use a C++20 enabled compiler? > > Please note that what you suggest it's already in place in pdfmm: I use fmtlib in place of std::format and a backported std::span. Thinking a little bit more about the topic, let's not argue too much about this: for the API/ABI surface I will just stick to C++17 requirement and hide the fact I'm using std::format and std::span. Cheers, Francesco _______________________________________________ Podofo-users mailing list Podofo-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/podofo-users _______________________________________________ Podofo-users mailing list Podofo-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/podofo-users