5 ms·
but here in the case of Microsoft Checked C , you still need to modify your actual source code to get safer one.
by adxlarbi 10y ago
but here in the case of Microsoft Checked C , you still need to modify your actual source code to get safer one.
- fao_ 10y agoBut you're moving to a safer subset, not a safer superset, so it still shouldn't require significant alterations.
- mixedCase 10y agoUhhh moving from set to subset is what requires alterations, set to superset does not, by definition. The problem here is compiler support and performance.
- fao_ 10y agoC++ is an altered and extended form of C, thus I would say it is more accurate to call it a superset, rather than a subset. I'm not using precise definitions here. And of course, but those will come in time. The point of it is that C++ isn't any safer (And actually, I would say is more risky in some aspects, because of the differences between (For example) the UB in C and C++), while Checked C is guaranteed to be safer, to a certain degree.
- cleeus 10y agoOK, I have to admit that Checked C is probably strictly safer while C++ is ... a mixed thing (both safer and more complicated).