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

Paolo Carlini pcarlini@suse.de
Fri Aug 13 14:57:00 GMT 2004


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.



More information about the Libstdc++ mailing list