This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC 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: [v3] Couple of iostreams clean ups


B. Kosnik wrote:

I get everything about this patch except for _M_mode. Why did you remove
it from the base class and then put it in both derived classes? This
seems foolish.

Basically, because it has no uses in streambuf and in this way whoever wants to derive from streambuf doesn't get it unnecessarily. I have also checked a couple of ther widespread implementations and both do the same thing (no members for storing the openmode in streambuf).

Paolo.


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