The conditional expression evaluates to an integer type. Ex:
class B {};
int main () {
B b1;
int i = 0;
if (b1) // C2451
;
Possible resolution:
class B {};
int main () {
B b1;
int i = 0
if (i)
;
This article is a derivative work based on Compiler Error C2451 which is provided by MSDN Community Content - Visual C++.