Hacker News new | ask | show | jobs
by varajelle 1292 days 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.