cpp trick