From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 7406 invoked by alias); 20 Apr 2003 18:26:01 -0000 Mailing-List: contact gcc-prs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-prs-owner@gcc.gnu.org Received: (qmail 7390 invoked by uid 71); 20 Apr 2003 18:26:00 -0000 Date: Sun, 20 Apr 2003 18:26:00 -0000 Message-ID: <20030420182600.7389.qmail@sources.redhat.com> To: paolo@gcc.gnu.org Cc: gcc-prs@gcc.gnu.org, From: Paolo Carlini Subject: Re: libstdc++/10444: ifstream.peek() can remove a character from the input file stream Reply-To: Paolo Carlini X-SW-Source: 2003-04/txt/msg00879.txt.bz2 List-Id: The following reply was made to PR libstdc++/10444; it has been noted by GNATS. From: Paolo Carlini To: gcc-gnats@gcc.gnu.org, gcc-bugs@gcc.gnu.org, paolo@gcc.gnu.org, gcc-prs@gcc.gnu.org, loren.williams@lycos.com Cc: Subject: Re: libstdc++/10444: ifstream.peek() can remove a character from the input file stream Date: Sun, 20 Apr 2003 20:24:59 +0200 Forgot to add: you can obtain the behavior you expected by default from operator>>(char&) by using the noskipws flag/manipulator (e.g., #include ... infile >> noskipws >> c) Paolo. http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=10444