|
Boost Users : |
From: Hartmut Kaiser (hartmut.kaiser_at_[hidden])
Date: 2007-06-18 13:37:32
Christian Henning wrote:
> Hi there, I'm using boost 1.34 and MS VC7.1 . The following
> code lets my compiler ICE.
This should work.
> #include <vector>
>
> #include <boost/spirit/core.hpp>
> #include <boost/spirit/actor/push_back_actor.hpp>
>
> using namespace std;
> namespace sp = boost::spirit;
>
> int main(int argc, char* argv[])
> {
> vector<int> n;
>
> bool ret = parse( "12", sp::int_p[push_back_a( n )] ).full;
Did you forget the namespace decoration:
bool ret = parse( "12", sp::int_p[sp::push_back_a( n )] ).full;
?
VC7.1 is known to ICE if the functor is not found.
Regards Hartmut
>
> return 0;
> }
>
> The reason is the push_back_a actor. Is that a known issue or
> am I doing something wrong?
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