Summary: nullptr converts to bool, and bool converts to int, so why doesn\'t nullptr convert to int
nullptr
bool
int
To understand why is this happening, you should understand how to use nullptr. Check these links bellow:
I hope it helps.