1 Oct 02:59
Re: trouble updating to spirit classic
Mark Loftis <mark_loftis <at> earthlink.net>
2009-10-01 00:59:28 GMT
2009-10-01 00:59:28 GMT
Hartmut Kaiser wrote: >> I'm having some trouble bringing an application up-to-date with the >> latest version of boost/spirit. The current version used by the app is >> 1.8.5 and I'm looking to make the switch over to 2.1/1.41 (r56475 from >> the boost SVN trunk). So far, I've simply changed the include's and >> namespace references from this: >> >> #include <boost/spirit/trees/ast.hpp> >> using namespace boost::spirit; >> >> To this: >> >> #include <boost/spirit/include/classic_ast.hpp> >> using namespace boost::spirit::classic; >> > > That's the right way to handle things. > > >> in the relevant application source files. When I compile the app (using >> VS2008 / WinXP, both up-to-date) I end up with this error several times >> : >> error C2039: 'trees' : is not a member of >> 'boost::spirit::classic::match<boost::spirit::classic::nil_t>' >> ...\boost\spirit\home\classic\tree\common.hpp 1478 >> > > This error tells you that you're using a 'normal' spirit::match object > instead of a spirit::tree_match, which is probably the result of a > misspelled policy. But it's difficult to tell from here as long as you can't(Continue reading)
RSS Feed