[spirit] MS compiler ICE when using push_back_a
Hi there, I'm using boost 1.34 and MS VC7.1 . The following code lets
my compiler ICE.
#include <vector>
#include
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
#include 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?
Ups, sorry for the noise you're right. I forgot the namespace decorator. Thanks for the help. Christian
participants (2)
-
Christian Henning
-
Hartmut Kaiser