#include <string>
#include <iostream>
std::string(foo);
int main()
{
std::cout << foo.size() << "\n";
return 0;
}
Results in 0
, instead of an expected compile error for foo
being undefined.
How is it able to do this? What is this called?