This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
Re: [Patch] More redundant NULL pointer checks
- From: Benjamin Kosnik <bkoz at redhat dot com>
- To: Paolo Carlini <pcarlini at unitus dot it>
- Cc: libstdc++ at gcc dot gnu dot org
- Date: Mon, 21 Apr 2003 12:21:32 -0500
- Subject: Re: [Patch] More redundant NULL pointer checks
- References: <3EA18026.70900@unitus.it>
Ok, except the sgetc change, don't do this. Also, your line breaks are funny:
+ const bool __testeof =
+ traits_type::eq_int_type(__c, traits_type::eof());
Should be:
+ const bool __testeof = traits_type::eq_int_type(__c,
+ traits_type::eof());
-benjamin