From: Alexey B. <lo...@us...> - 2006-10-31 12:26:37
|
Update of /cvsroot/boost-sandbox/boost-sandbox/boost/property_tree In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv32201/boost/property_tree Modified Files: registry_parser.hpp Log Message: fixed for STLPort compliance Index: registry_parser.hpp =================================================================== RCS file: /cvsroot/boost-sandbox/boost-sandbox/boost/property_tree/registry_parser.hpp,v retrieving revision 1.6 retrieving revision 1.7 diff -u -d -r1.6 -r1.7 --- registry_parser.hpp 22 Oct 2006 19:18:39 -0000 1.6 +++ registry_parser.hpp 31 Oct 2006 12:26:32 -0000 1.7 @@ -195,7 +195,9 @@ stream >> std::hex; while (1) { - stream >> v >> std::ws; + stream >> v; + if ( !stream.eof() ) + stream >> std::ws; if (stream.fail() || stream.bad()) throw registry_parser_error("bad REG_BINARY value", 0); data.push_back(v); @@ -210,7 +212,9 @@ { DWORD v; Stream stream(s); - stream >> v >> std::ws; + stream >> v; + if ( !stream.eof() ) + stream >> std::ws; if (!stream.eof() || stream.fail() || stream.bad()) throw registry_parser_error("bad REG_DWORD value", 0); for (size_t i = 0; i < sizeof(v); ++i) |