Return-Path: Delivered-To: apmail-stdcxx-issues-archive@locus.apache.org Received: (qmail 65498 invoked from network); 14 Feb 2008 13:29:43 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 14 Feb 2008 13:29:43 -0000 Received: (qmail 92328 invoked by uid 500); 14 Feb 2008 13:29:37 -0000 Delivered-To: apmail-stdcxx-issues-archive@stdcxx.apache.org Received: (qmail 92309 invoked by uid 500); 14 Feb 2008 13:29:37 -0000 Mailing-List: contact issues-help@stdcxx.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@stdcxx.apache.org Delivered-To: mailing list issues@stdcxx.apache.org Received: (qmail 92300 invoked by uid 99); 14 Feb 2008 13:29:37 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 14 Feb 2008 05:29:37 -0800 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO brutus.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 14 Feb 2008 13:28:50 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 36F9671406C for ; Thu, 14 Feb 2008 05:29:10 -0800 (PST) Message-ID: <19954623.1202995750199.JavaMail.jira@brutus> Date: Thu, 14 Feb 2008 05:29:10 -0800 (PST) From: "Farid Zaripov (JIRA)" To: issues@stdcxx.apache.org Subject: [jira] Issue Comment Edited: (STDCXX-375) std::getline() declared in , but should be declared in MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/STDCXX-375?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12568924#action_12568924 ] farid edited comment on STDCXX-375 at 2/14/08 5:27 AM: --------------------------------------------------------------- This problem is exist on compilers with supporting of implicit inclusion (where _RWSTD_NO_IMPLICIT_INCLUSION is not defined). On these compilers we don't explicitly #including files, but it seems that compiler doesn't #includes file implicitly because of std::operator>>() and std::getline() are declared in . So what the option? Restore the declaration of these functions in will not help. Perhaps we should to #include in explicilty ignoring the implicit inclusion? was (Author: farid): This problem is exist on compilers with supporting of implicit inclusion (where _RWSTD_NO_IMPLICIT_INCLUSION is not defined). On these compilers we don't explicitly #including file, and compiler doesn't #includes file implicitly because of std::operator>>() and std::getline() are declared in . So what the option? Restore the declaration of these functions in will not help. Perhaps we should to #include in explicilty ignoring the implicit inclusion? > std::getline() declared in , but should be declared in > ------------------------------------------------------------------------ > > Key: STDCXX-375 > URL: https://issues.apache.org/jira/browse/STDCXX-375 > Project: C++ Standard Library > Issue Type: Bug > Components: 21. Strings > Affects Versions: 4.1.3, 4.1.4, 4.2.0 > Environment: All > Reporter: Farid Zaripov > Assignee: Farid Zaripov > Fix For: 4.2.1 > > Attachments: stdcxx-375.patch > > Original Estimate: 3h > Time Spent: 3h > Remaining Estimate: 0h > > The following code fails to compile with errors: > test.cpp(7) : error C2039: 'getline' : is not a member of 'std' > test.cpp(7) : error C3861: 'getline': identifier not found, even with argument-dependent lookup > test.cpp: > --------------------------- > #include > #include > void test (std::istream& is) > { > std::string str; > std::getline (is, str); > } > --------------------------- > The addition information here: http://mail-archives.apache.org/mod_mbox/incubator-stdcxx-dev/200703.mbox/%3c7BDB2168BEAEF14C98F1901FD2DE6438594C10@epmsa009.minsk.epam.com%3e -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.