CPPredicate: use @ref instead of custom function