forked from boostorg/conversion
no message
[SVN r17921]
This commit is contained in:
@@ -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:
|
||||||
|
Reference in New Issue
Block a user