Boost logo

Boost Users :

Subject: Re: [Boost-users] Boost StateChart and Template parameters
From: Etienne Philip Pretorius (icewolfhunter_at_[hidden])
Date: 2009-07-25 14:37:05


Hello List

After all of that I get caught with this Compiler error:

xml.hpp:77: error: passing ‘const xml::entity’ as ‘this’ argument of
‘virtual void
xml::entity::parse(boost::asio::buffers_iterator<boost::asio::const_buffers_1,
char>, boost::asio::buffers_iterator<boost::asio::const_buffers_1,
char>)’ discards qualifiers

 From within document class:

            typedef boost::asio::buffers_iterator<
                boost::asio::streambuf::const_buffers_type
> iterator;
            void parse(
                iterator begin,
                iterator end
            ) {
                return state_cast<const entity&>().parse(begin,end);
            }

So a short question is 'How do you pass data from "outside" the state
machine into the state machine'. Is it worth it?

Etienne


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net