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: [Patch] Allow setbuf(_s, 1)


>>2003-06-17  Nathan C. Myers  <ncm-nospam@cantrip.org>
>>	    Paolo Carlini  <pcarlini@unitus.it>
>>
>>	* include/bits/fstream.tcc (setbuf): Allow (__s, 1) too,
>>	simply equivalent to the unbuffered case (0, 0).

Looks fine, but can't you just do

+      else if (__s && __n)

-benjamin


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