Re:C++26 is done ISO C++ standards meeting, Trip Report
by affenape on Monday March 30, 2026 @02:33PM
(#47577957)
From the proposal, I see a bunch of new keywords and rules - alright given the language's heritage. But what happens if I "relocate" a variable value - would a "shell" remain or how exactly C++ is supposed to handle this:
[ Parent
| on HN ]
Re:C++26 is done ISO C++ standards meeting, Trip Report
by jandrewrogers on Monday March 30, 2026 @04:37PM
(#47579413)
My assumption is that this would produce a compiler error. Depending on whether or not the branch is taken, you would essentially be accessing an uninitialized value. Compilers already catch this type of case.