[Patch] Allow setbuf(_s, 1)

Benjamin Kosnik bkoz@redhat.com
Wed Jun 18 16:43:00 GMT 2003


>>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



More information about the Libstdc++ mailing list