阅读背景:

有没有办法检查是否以二进制模式打开了一个istream?

来源:互联网 

I'm using an istream which could be stringstream, ifstream or a user-defined stream type and I need to know if, in the case of an ifstream, it was not opened in binary mode (so I can throw an exception). I have tried the following method:I'm using an istream which could be stringstrea




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: