请考虑以下几点:
std::ostream out(nullptr);
这是合法且定义明确的吗?
如果我现在这样做:
out << "hello world\n";
这是合法且定义明确的吗?如果是这样的话,想必这是一种无操作吧?
https://stackoverflow.com/questions/25690636
相似问题