From: stephan b. <sg...@us...> - 2004-12-28 04:15:43
|
Update of /cvsroot/pclasses/pclasses2/src/s11n/io/expat In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv14825/src/s11n/io/expat Modified Files: expat_serializer.h Log Message: Added a kludge to get around some implicit conversion problems when NodeType::map_type::value_type is not a string but pretends to be one (LexT). Index: expat_serializer.h =================================================================== RCS file: /cvsroot/pclasses/pclasses2/src/s11n/io/expat/expat_serializer.h,v retrieving revision 1.3 retrieving revision 1.4 diff -u -d -r1.3 -r1.4 --- expat_serializer.h 26 Dec 2004 14:36:29 -0000 1.3 +++ expat_serializer.h 28 Dec 2004 04:15:32 -0000 1.4 @@ -2,6 +2,7 @@ #define s11n_EXPAT_SERIALIZER_HPP_INCLUDED 1 #include <pclasses/Util/StringTool.h> // translateEntities() +#include <pclasses/Util/LexT.h> #include <pclasses/s11n/s11n_debuggering_macros.h> // COUT/CERR #include <pclasses/s11n/io/data_node_format.h> #include <pclasses/s11n/traits.h> // node_traits @@ -82,8 +83,14 @@ bool closed = false; typename NT::const_iterator cit = NT::begin(src), cet = NT::end(src); - std::string propval; - std::string key; + + std::string key; + using ::P::Util::LexT; + LexT propval; + // ^^^ required to get around an + // implicit cast problem when + // map_type::value_type.second is not + // string but tries to act like one. if( cet != cit ) { // got properties? |