C++: Why is a public const method not called when the non-const one is private? · HackerTrans