I have this function:
std::string SWindows::PRecv(int rc, std::string* ip);
In this function, in some case I return NULL and the code compile (IDE : VS 2012). For me, NULL it's not a std::string object so we can't write that.
So why it's correct to return NULL when the return of the function is a std::string ?