Re:A Tour of C++, 3rd edition (covering C++20 plus a few lik...
by tialaramex on Sunday October 30, 2022 @10:11AM
(#33394652)
> 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.
Re:A Tour of C++, 3rd edition (covering C++20 plus a few lik...
by jeroenhd on Sunday October 30, 2022 @10:24AM
(#33394736)
Looking at this table: 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.
Re:A Tour of C++, 3rd edition (covering C++20 plus a few lik...
by tialaramex on Sunday October 30, 2022 @10:59AM
(#33395012)
Fair, last time I looked at that table there were still holes for MSVC but they're apparently done.
Re:A Tour of C++, 3rd edition (covering C++20 plus a few lik...
by Kranar on Sunday October 30, 2022 @10:09PM
(#33401272)
Ooooooh 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.
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.