Comment #2 on issue 537 by [email protected]: GetErrno() constness
http://code.google.com/p/protobuf/issues/detail?id=537

I can use FileInputStream or FileOutputStream as part of some object that may need to query their state in const member function.

Functions we are talking about check current object state, not filesystem. In comment above said, that GetErrno() returns errno for the last error occurred. It may not alter state and should be const, like std::basic_ios::good(). I agree that this statement may be argued, but similar classes Gzip{In,Out}putStream have such functions (ZlibErrorMessage and ZlibErrorCode) declared const.

--
You received this message because this project is configured to send all issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings

--
You received this message because you are subscribed to the Google Groups "Protocol 
Buffers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/protobuf.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to