Add const qualifier to operator ~.