If someone told you that the following C++ function would cause the program to crash, what would you think it is that caused the problem?
C++
xxxxxxxxxx
1
1
std::string b2s(bool b) {
2
return b ? "true" : "false";
3
}