2 ms·
The Rust feature you're thinking of is named Editions. The proposal (from Vittorio) to do this in C++ 20 was named Epochs, and the committee rejected it, taking
by tialaramex 4y ago
The Rust feature you're thinking of is named Editions. The proposal (from Vittorio) to do this in C++ 20 was named Epochs, and the committee rejected it, taking the position that while this is maybe a good idea they're not interested in figuring out how to do it and will meanwhile make it harder.
It would definitely be very difficult to do Epochs in C++ 20. It got harder, and will continue to get harder. In my view, if it was possible in 2020, it won't be possible in 2026. Accordingly I think C++ is doomed. Get out while you still can (or, you know, size up lucrative consulting gigs as maintenance, it's not as though existing C++ code will all rust out [pun not intended] before you retire)