Then return him an empty address.
Original code
- Compilation environment Windows
- Target Compilation Platform Windows
- Compile tool Mingw5.3
- Error file io_win32.cc
- Error line 94
template <typename char_type>
bool null_or_empty(const char_type* s) {
//TODO: nullptr error
return (s == nullptr || *s == 0);
}
The function is supposed to return a null pointer but there is no nullptr. The value of the null pointer in the system is 0xCC (the legendary hot and hot), just change it to 0xCC
template <typename char_type>
bool null_or_empty(const char_type* s) {
//TODO: nullptr error
return (s == 0xcc || *s == 0);
}