This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
Re: [Patch] Allow setbuf(_s, 1)
- From: Benjamin Kosnik <bkoz at redhat dot com>
- To: Paolo Carlini <pcarlini at unitus dot it>
- Cc: pcarlini at unitus dot it, libstdc++ at gcc dot gnu dot org
- Date: Wed, 18 Jun 2003 11:41:52 -0500
- Subject: Re: [Patch] Allow setbuf(_s, 1)
- References: <3EEF64E2.1010206@unitus.it><3EEF7A57.7060300@unitus.it>
>>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