[LLVMbugs] [Bug 10390] New: Define std::getline in <string>, not <istream>
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Mon Jul 18 03:56:23 PDT 2011
http://llvm.org/bugs/show_bug.cgi?id=10390
Summary: Define std::getline in <string>, not <istream>
Product: libc++
Version: unspecified
Platform: All
OS/Version: All
Status: NEW
Severity: normal
Priority: P
Component: All Bugs
AssignedTo: hhinnant at apple.com
ReportedBy: pyry.jahkola at iki.fi
CC: llvmbugs at cs.uiuc.edu
By ยง 20.3 of the C++0x FDIS, the definitions for the free functions
std::getline(is, str[, delim]) should be defined in the <string> header, but
trunk libc++ defines them in the <istream> header.
I tried to compile Boost.Filesystem against clang and libc++ but got compiler
errors from boost/filesystem/v2/path.hpp correctly trying to call std::getline
without including <istream>. Adding "#include <istream>" to the file removed
the error, but the right fix would be to move said template function
definitions to their right place, i.e. to the <string> header.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
More information about the llvm-bugs
mailing list