Compiler Error C2451

conditional expression of type 'type' is illegal

The conditional expression evaluated to an illegal type.