no message

[SVN r17921]
This commit is contained in:
Terje Slettebø
2003-03-14 20:17:47 +00:00
parent b06d9f5639
commit 3f452717cf

View File

@@ -10,7 +10,8 @@
// who: contributed by Kevlin Henney, // who: contributed by Kevlin Henney,
// enhanced with contributions from Terje Sletteb<65>, // enhanced with contributions from Terje Sletteb<65>,
// with additional fixes and suggestions from Gennaro Prota, // with additional fixes and suggestions from Gennaro Prota,
// Beman Dawes, Dave Abrahams, Daryle Walker, and other Boosters // Beman Dawes, Dave Abrahams, Daryle Walker, Peter Dimov,
// and other Boosters
// when: November 2000, March 2003 // when: November 2000, March 2003
#include <string> #include <string>
@@ -148,12 +149,17 @@ namespace boost
} }
bool operator>>(std::string &output) bool operator>>(std::string &output)
{ {
return std::getline(stream, output, char_type()).eof(); #if defined(BOOST_NO_STRINGSTREAM)
stream << '\0';
#endif
output = stream.str();
return true;
} }
#ifndef DISABLE_WIDE_CHAR_SUPPORT #ifndef DISABLE_WIDE_CHAR_SUPPORT
bool operator>>(std::wstring &output) bool operator>>(std::wstring &output)
{ {
return std::getline(stream, output, char_type()).eof(); output = stream.str();
return true;
} }
#endif #endif
private: private: