3 ms·
The title says it covers C++20 with some C++23 features. This requires a module version of the standard library's iostreams mechanism - and that's a C++23 featu
by einpoklum 4y ago
The title says it covers C++20 with some C++23 features. This requires a module version of the standard library's iostreams mechanism - and that's a C++23 feature.
In 2023, compilers are likely to support this - and you will have a less-obsolete book. If Bjarne had written a C++20-only book, it would have been supported by existing compilers, but would have gotten older, quicker.
- tialaramex 4y ago> If Bjarne had written a C++20-only book, it would have been supported by existing compilers Not yet. Most of the C++ 20 features are implemented in at least one compiler, but if you just write a whole pile of C++ 20 without checking all the features you used are in all the compilers you use, that won't work.
- jeroenhd 4y agoLooking at this table: https://en.cppreference.com/w/cpp/compiler_support https://en.cppreference.com/w/cpp/compiler_support it seems like you should be able to use almost all of C++20 with a recent Microsoft compiler without issues. Open source compilers (Clang, g++) lack more features.
- tialaramex 4y agoFair, last time I looked at that table there were still holes for MSVC but they're apparently done.
- Kranar 4y agoOoooooh not at all. MSVC does "support" most features but they are full of issues. MSVC's development seems focused mostly on ticking off boxes, whereas GCC is focused on actually implementing things properly and not releasing things until they actually work. Clang is all but abandoned.