Hacker News new | ask | show | jobs
by bmm6o 4694 days ago
But if you have a const reference to a non-const object, it's legal to use a const_cast to remove the const part. This is the more likely scenario, since most objects aren't const.