Delete stuff for VS 2008

This commit is contained in:
Thomas Goyne 2013-06-07 20:03:18 -07:00
parent 995a8642f0
commit e668cc45e0
1 changed files with 0 additions and 5 deletions

View File

@ -162,12 +162,7 @@ void line_iterator<OutputType>::getline(std::string &str) {
for (;;) { for (;;) {
u.chr = 0; u.chr = 0;
#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, sizeof(u.buf), width);
#else
std::streamsize read = stream->rdbuf()->sgetn(u.buf, width); std::streamsize read = stream->rdbuf()->sgetn(u.buf, width);
#endif
if (read < (std::streamsize)width) { if (read < (std::streamsize)width) {
for (int i = 0; i < read; i++) { for (int i = 0; i < read; i++) {
str += u.buf[i]; str += u.buf[i];