Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

C++20:Two complements reigns supreme

Name: Anonymous 2018-11-16 14:26

https://herbsutter.com/2018/11/13/trip-report-fall-iso-c-standards-meeting-san-diego/
C++20 and future C standards will stop supporting non 2-complement machines.
``Signed integers are two’s complement (JF Bastien) is the result of a courtroom drama in both WG21 (C++) and WG14 (C). After intense prosecutorial cross-examination, the witness finally admitted in both courts that, yes, all known modern computers are two’s complement machines, and, no, we don’t really care about using C++ (or C) on the ones that aren’t. The C standard is likely to adopt the same change.``

Also C++ is getting closer to D's CTFE with constexpr's expanding their role. Ranges and template-less constraints(dependent types require this) are also in standad.
``For the first time, besides the special case of generic lambdas, C++ will now let you write lots of generic functions without “template” or angle brackets, and that are concept-constrained and therefore much easier to use correctly than function templates have ever been before.``

Name: Anonymous 2018-11-16 14:29

Is this link from Hacker News? Go back there, please!

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List