std::basic_streambuf::_Sgetn_s was removed was Visual C++ 2010 for some reason.

Originally committed to SVN as r5150.
This commit is contained in:
Niels Martin Hansen 2011-01-08 21:54:31 +00:00
parent 71928bc25b
commit abf9ee645b
1 changed files with 2 additions and 1 deletions

View File

@ -163,7 +163,8 @@ void line_iterator<OutputType>::getline(std::string &str) {
for (;;) {
u.chr = 0;
#ifdef _WIN32
#if defined(_MSC_VER) && _MSC_VER < 1600
// This _s version is only available in Visual C++ 2005 and 2008, it was removed in VC 2010
std::streamsize read = stream->rdbuf()->_Sgetn_s(u.buf, 4, width);
#else
std::streamsize read = stream->rdbuf()->sgetn(u.buf, width);