[
https://issues.apache.org/jira/browse/STDCXX-375?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Martin Sebor closed STDCXX-375.
-------------------------------
Resolution: Invalid
The test case is invalid: It expects std::istream to be a complete type but it
only #includes <iosfwd> and not
<istream>. <iosfwd> is required to declare the type but it is not required to
provide a definition. See this thread for more details:
http://mail-archives.apache.org/mod_mbox/incubator-stdcxx-dev/200703.mbox/[EMAIL
PROTECTED]
> std::getline() declared in <istream>, but should be declared in <string>
> ------------------------------------------------------------------------
>
> 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
> Environment: All
> Reporter: Farid Zaripov
> Fix For: 4.2
>
>
> 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 <string>
> #include <iosfwd>
> 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/[EMAIL
> PROTECTED]
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.