Does negate twice (!!) make any sense?
- by Dbger
I noticed following usage of negate (!) in our code base, like:
int GetIntFromRegistry();
bool bok = !!GetIntFromRegistry();
I am really curious about the usage of !!, it you want to cast the type from int to bool, why not just cast it explicitly use (bool), or static_cast.
Is there anything I am missing?