C++23

Pages: 123
It sounds almost like "unreachable" is more of a debugging tool for you than a performance enhancer. Tell me, do you use sanitizers or some other compiler flag to force it to crash?
well, we're *supposed* to be doing it for codegen and also to mark cases where compiler thinks we could fall off the end of a non-void function. But in day to day practice it's a handy crasher.. Which is a micro version of the great contracts debate.
do you use sanitizers or some other compiler flag
oh, I see, in debug mode we have some extra instrumentation there. Never actually noticed until today
Last edited on
Re: C++23 books.....

I noticed that Beginning C++20's github repo has a C++23 branch as of about 2 hours ago*.

https://github.com/Apress/beginning-cpp20

Whether that means Apress/Ivor Horton and Peter Van Weert are working on a "Beginning C++23" book I can't say, but it does look possible. After all C++23 isn't as major a change to C++ as C++20 is.

*I found out about the new branches by doing a git pull for the C++ example source code.
Last edited on
I'd put good money on the fact that they are - and that it will one of (if not the) first printed C++23 book available.
More money spent on a hobby that is expensive enough. *sigh*

Given how useful "Beginning C++20" was for this non-beginner "Beginning C++23" would be something to consider purchasing, after Visual Studio implements the C++23 core language and library features.

So far VS is about on par with the other compilers, though what is and isn't implemented varies between the compilers, with at this time two notable exceptions for implementation.

1. The optional extended floating-point types will not be added.

2. Relaxing the requirements for time_point<>::clock. Something GCC won't be doing as well.
More money spent on a hobby that is expensive enough. *sigh*


Well you could just read for free:
https://en.cppreference.com/w/cpp/language

:) :)

Scraping the bowels of the interwebs today I ran across this page:
https://isocpp.org/std/status

M'ok, C++23 is draft wording finished, it hasn't yet been finalized for release. After all it is still 2022.

That status page indicates the ISO Committee is already looking towards C++26. That's understandable, if a bit premature.

But C++29?!?
I'd like to know what SG20 has brought/is bringing to the picnic?
Probably not a whole lot, except for ants.

https://cplusplus.github.io/SG20/latest/

There has been semi-recent activity on the teaching guidelines, about 7 months ago.

https://github.com/cplusplus/SG20
I gotta admit after glancing over the latest revision of the document those "Guidelines for Teaching C++" are, to be generous, more than a bit sparse.

It certainly is not geared at all IMO for how to teach C++ to beginners.
I rest my sandwich...
Topic archived. No new replies allowed.
Pages: 123