NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

Compiler Error C2451

conditional expression of type 'type' is illegal

The conditional expression evaluates to an integer type. The following sample generates C2451:

class B {
};

main() {
   B b1;
   int i = 0;
   if (b1)   // C2451
      ;
   /*
   // try 
   // if (i) 
      ;
   */
}