The code below compiles in VS 2012 but not in VS 2013
std::ofstream stm; if(stm != NULL) { }
In VS 2013 you get this compilation error:
If you have a lot of legacy code, you could probably add a custom operator!= (and operator==) function which takes the correct arguments:
operator!=
operator==
bool operator!=(std::basic_ios const& ios, const void* ptr); bool operator!=(const void* ptr, std::basic_ios const& ios);