Fix bug quoted_manip.hpp and in its tests. Thanks to Daniel James for a patch.

[SVN r64856]
This commit is contained in:
Beman Dawes
2010-08-16 21:53:33 +00:00
parent 1962b0b090
commit 961be4e927
2 changed files with 93 additions and 52 deletions

View File

@ -125,15 +125,15 @@ namespace boost
std::basic_istream<Char, Traits>& operator>>(std::basic_istream<Char, Traits>& is,
const quoted_proxy<std::basic_string<Char, Traits, Alloc>&, Char>& proxy)
{
proxy.string.clear();
Char c;
is >> c;
if (c != proxy.delim)
{
proxy.string = c;
is.unget();
is >> proxy.string;
return is;
}
proxy.string.clear();
{
boost::io::ios_flags_saver ifs(is);
is >> std::noskipws;