3 ms·
Yeah, but the compiler need to see through all the functions to find out that there is no const_cast and therefore makes const useless because it could as well
by varajelle 4y ago
Yeah, but the compiler need to see through all the functions to find out that there is no const_cast and therefore makes const useless because it could as well see it is not modified.
Also it needs to be good at alias analysis.