This is the mail archive of the libstdc++@gcc.gnu.org mailing list for the libstdc++ project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Should basic_*stream::is_open() be const?


Vladimir Merzliakov wrote:

class Parser {
std:ifstream m_in;
public: bool isOK() const { return m_in.is_open(); }
};


Thanks Vladimir! (by the way, I'm battling with 17012)

And, I should add, for "some reason" ;), Icc can compile the above...

Paolo.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]