3

Has C++11 move semantics made the use of std::ifstream and std::ofstream easier or safer with regards to exceptions? I guess it depends on the standard library aswell. Any differences there between GCC, ICC and VC++ Compiler?

4

1 回答 1

6

不会。std::stream 类的异常安全方面没有受到影响。唯一的区别是您现在可以从工厂函数返回流并将它们存储在容器中。

于 2011-10-01T23:55:56.270 回答