Status: New
Owner: liuj...@google.com
Labels: Type-Defect Priority-Medium
New issue 537 by sarum...@gmail.com: GetErrno() constness
http://code.google.com/p/protobuf/issues/detail?id=537
I suppose FileInputStream and FileOutputStream should have GetErrno() with
const modifier. This function is a simple getter and I see no reason for
this function to be non-const.
From
http://google-styleguide.googlecode.com/svn/trunk/cppguide.xml#Use_of_const
Declare methods to be const whenever possible. Accessors should almost
always be const. Other methods should be const if they do not modify any
data members, do not call any non-const methods, and do not return a
non-const pointer or non-const reference to a data member.
--
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 protobuf+unsubscr...@googlegroups.com.
To post to this group, send email to protobuf@googlegroups.com.
Visit this group at http://groups.google.com/group/protobuf.
For more options, visit https://groups.google.com/groups/opt_out.