Visual C++ emits the following warning on implicit conversions from pointers to bool: "warning C4800: 'const void *': forcing value to bool 'true' or 'false' (performance warning)" Fixed by explicitly comparing the pointer to 0.