From: <pat...@us...> - 2009-11-21 15:59:05
|
Revision: 636 http://xml-cppdom.svn.sourceforge.net/xml-cppdom/?rev=636&view=rev Author: patrickh Date: 2009-11-21 15:58:55 +0000 (Sat, 21 Nov 2009) Log Message: ----------- Merged r635 from the trunk: Added a missing #include in order for EOF to be defined. Modified Paths: -------------- branches/1.0/cppdom/xmltokenizer.cpp Property Changed: ---------------- branches/1.0/cppdom/ Property changes on: branches/1.0/cppdom ___________________________________________________________________ Added: svn:mergeinfo + /trunk/cppdom:635 Modified: branches/1.0/cppdom/xmltokenizer.cpp =================================================================== --- branches/1.0/cppdom/xmltokenizer.cpp 2009-11-21 15:56:09 UTC (rev 635) +++ branches/1.0/cppdom/xmltokenizer.cpp 2009-11-21 15:58:55 UTC (rev 636) @@ -43,6 +43,7 @@ */ // needed includes +#include <cstdio> #include "cppdom.h" #include "xmltokenizer.h" This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <pat...@us...> - 2010-05-09 20:39:48
|
Revision: 658 http://xml-cppdom.svn.sourceforge.net/xml-cppdom/?rev=658&view=rev Author: patrickh Date: 2010-05-09 20:39:42 +0000 (Sun, 09 May 2010) Log Message: ----------- Merged r656 from the trunk: Avoid polluting the global namespace with 'using namespace' declarations in a header file. Submitted by: Jan P. Springer Modified Paths: -------------- branches/1.0/cppdom/SpiritParser.cpp branches/1.0/cppdom/SpiritParser.h Modified: branches/1.0/cppdom/SpiritParser.cpp =================================================================== --- branches/1.0/cppdom/SpiritParser.cpp 2010-05-09 20:37:14 UTC (rev 657) +++ branches/1.0/cppdom/SpiritParser.cpp 2010-05-09 20:39:42 UTC (rev 658) @@ -41,6 +41,9 @@ */ #include <cppdom/SpiritParser.h> +namespace bs = boost::spirit; +using namespace boost::spirit; + namespace cppdom { Modified: branches/1.0/cppdom/SpiritParser.h =================================================================== --- branches/1.0/cppdom/SpiritParser.h 2010-05-09 20:37:14 UTC (rev 657) +++ branches/1.0/cppdom/SpiritParser.h 2010-05-09 20:39:42 UTC (rev 658) @@ -56,10 +56,6 @@ #include <boost/spirit/iterator/multi_pass.hpp> #include <iostream> - -namespace bs = boost::spirit; -using namespace boost::spirit; - namespace cppdom { @@ -193,7 +189,7 @@ * type: BUILDER_T must implement the interface concept similar to XmlBuilder above. */ template<typename BUILDER_T> -struct XmlGrammar : public grammar<XmlGrammar<BUILDER_T> > +struct XmlGrammar : public boost::spirit::grammar<XmlGrammar<BUILDER_T> > { XmlGrammar(BUILDER_T* builder) : mBuilder(builder) @@ -207,6 +203,9 @@ { definition(XmlGrammar const& self) { + namespace bs = boost::spirit; + using namespace boost::spirit; + document = prolog >> element >> *misc; // Main document root ws = +space_p; // Whitespace, simplified from XML spec @@ -273,7 +272,7 @@ BOOST_SPIRIT_DEBUG_RULE(xmldecl); } - rule<ScannerT> attribute, + boost::spirit::rule<ScannerT> attribute, attrib_value, cdata_sect, cdata, @@ -295,7 +294,7 @@ xmldecl ; - rule<ScannerT> const& start() const + boost::spirit::rule<ScannerT> const& start() const { return document; } }; }; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <pat...@us...> - 2011-04-04 23:46:11
|
Revision: 677 http://xml-cppdom.svn.sourceforge.net/xml-cppdom/?rev=677&view=rev Author: patrickh Date: 2011-04-04 23:46:05 +0000 (Mon, 04 Apr 2011) Log Message: ----------- MFT [r676]: Added missing #include directives. Submitted by: Doug McCorkle Modified Paths: -------------- branches/1.0/cppdom/cppdom.cpp branches/1.0/cppdom/ext/OptionRepository.cpp Modified: branches/1.0/cppdom/cppdom.cpp =================================================================== --- branches/1.0/cppdom/cppdom.cpp 2011-04-04 23:45:24 UTC (rev 676) +++ branches/1.0/cppdom/cppdom.cpp 2011-04-04 23:46:05 UTC (rev 677) @@ -45,6 +45,7 @@ #include <iostream> #include <fstream> #include <string> +#include <iterator> // needed includes #include <cppdom/cppdom.h> Modified: branches/1.0/cppdom/ext/OptionRepository.cpp =================================================================== --- branches/1.0/cppdom/ext/OptionRepository.cpp 2011-04-04 23:45:24 UTC (rev 676) +++ branches/1.0/cppdom/ext/OptionRepository.cpp 2011-04-04 23:46:05 UTC (rev 677) @@ -1,6 +1,7 @@ #include <cppdom/ext/OptionRepository.h> #include <sstream> +#include <iterator> #include <assert.h> namespace cppdom This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |