From stdcxx-dev-return-3089-apmail-incubator-stdcxx-dev-archive=incubator.apache.org@incubator.apache.org Fri Mar 30 16:50:12 2007 Return-Path: Delivered-To: apmail-incubator-stdcxx-dev-archive@www.apache.org Received: (qmail 48924 invoked from network); 30 Mar 2007 16:50:12 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 30 Mar 2007 16:50:12 -0000 Received: (qmail 71527 invoked by uid 500); 30 Mar 2007 16:50:19 -0000 Delivered-To: apmail-incubator-stdcxx-dev-archive@incubator.apache.org Received: (qmail 71465 invoked by uid 500); 30 Mar 2007 16:50:19 -0000 Mailing-List: contact stdcxx-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: stdcxx-dev@incubator.apache.org Delivered-To: mailing list stdcxx-dev@incubator.apache.org Received: (qmail 71454 invoked by uid 99); 30 Mar 2007 16:50:19 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 30 Mar 2007 09:50:19 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: domain of Farid_Zaripov@epam.com designates 217.21.63.3 as permitted sender) Received: from [217.21.63.3] (HELO EPMSA009.epam.com) (217.21.63.3) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 30 Mar 2007 09:50:11 -0700 X-MimeOLE: Produced By Microsoft Exchange V6.5 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Subject: RE: std::getline() declaration header Date: Fri, 30 Mar 2007 19:49:58 +0300 Message-ID: <7BDB2168BEAEF14C98F1901FD2DE6438657017@epmsa009.minsk.epam.com> In-Reply-To: <46096BD3.3050706@roguewave.com> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: std::getline() declaration header Thread-Index: Acdwo4vKWVloVsxJTX6H9E3Ruc94TACRAs5A From: "Farid Zaripov" To: X-Virus-Checked: Checked by ClamAV on apache.org > -----Original Message----- > From: Martin Sebor [mailto:sebor@roguewave.com]=20 > Sent: Tuesday, March 27, 2007 10:09 PM > To: stdcxx-dev@incubator.apache.org > Subject: Re: std::getline() declaration header >=20 > Farid Zaripov wrote: > >> -----Original Message----- > >> From: Martin Sebor [mailto:sebor@roguewave.com] > >> Sent: Tuesday, March 27, 2007 8:53 PM > >> To: stdcxx-dev@incubator.apache.org > >> Subject: Re: std::getline() declaration header > >> > >>> I've created the issue (the test case inside): > >>> https://issues.apache.org/jira/browse/STDCXX-375 > >> I don't think the test case is valid. It expects=20 > std::istream to be a=20 > >> complete type but it only #includes and not .=20 > >> only declares the type (which need not make it complete).=20 > >> Let me know if you disagree or if you have a test case=20 > that detects=20 > >> it w/o relying on istream being a complete type. > >=20 > > Yes. That test case don't requires the istream as complete type. > > This is compile only test (therefore that test do not have=20 > the main()=20 > > function). >=20 > Okay, I'll close the issue as invalid. Feel free to reopen it=20 > if you produce a valid test case. I don't think that the test is invalid. It's a compile only test, but it's valid :) Here used only reference to the std::istream, so include is enough. test.cpp: --------------------------- #include #include void test (std::istream& is) { std::string str; std::getline (is, str); } ---------------------------=20 I suppose that the header file should include . Farid.