[spirit2] push_back not fully understood - vc8 rejects code, why?

Hi!
Though I appreciate simple examples in the docs it is indeed
helpful to have examples with fully qualified names.
I am having hard times figuring out which versions of "_1", "at_c", etc.
are in use. the fusion/phoenix/proto/mpl chaos is hard to keep track of.
In summary: using declaratives are nice for toy examples but drive
you nuts, once you #include more files and have ADL destroying the idyll
of simplicity.
Below is a piece of code that nearly compiles. One line has a problem:
A semantic action, namely a push_back fails under vc8 and the error
message is far from being helpful.
So could you please be so nice and give me some hint on how to fix this.
(BTW, Joel: "iter+30" directives from the spirit2 examples are
assert-catched by the VC8 debugging STL, so I changed that part
a little bit to first check the distance and doing iterator
arithmetics afterwards. See below.)
best regards,
Markus
---snip---
#define BOOST_SPIRIT_DEBUG_OUT std::cerr
#define BOOST_SPIRIT_DEBUG
#include "Enforce.h"
#include

Markus Werle wrote:
Hi!
Though I appreciate simple examples in the docs it is indeed helpful to have examples with fully qualified names. I am having hard times figuring out which versions of "_1", "at_c", etc. are in use. the fusion/phoenix/proto/mpl chaos is hard to keep track of. In summary: using declaratives are nice for toy examples but drive you nuts, once you #include more files and have ADL destroying the idyll of simplicity.
Below is a piece of code that nearly compiles. One line has a problem: A semantic action, namely a push_back fails under vc8 and the error message is far from being helpful. So could you please be so nice and give me some hint on how to fix this.
(BTW, Joel: "iter+30" directives from the spirit2 examples are assert-catched by the VC8 debugging STL, so I changed that part a little bit to first check the distance and doing iterator arithmetics afterwards. See below.)
Hi Markus, care to move this to the Spirit list? Regards, -- Joel de Guzman http://www.boostpro.com http://spirit.sf.net

Joel de Guzman
Markus Werle wrote:
[...]
(BTW, Joel: "iter+30" directives from the spirit2 examples are assert-catched by the VC8 debugging STL, so I changed that part a little bit to first check the distance and doing iterator arithmetics afterwards. See below.)
Hi Markus, care to move this to the Spirit list?
Sorry. It is only that some messages to *spirit* got frequently lost. gmane gives me no feedback what went wrong. I have to check that again. CU Markus

Joel de Guzman
Hi Markus, care to move this to the Spirit list?
Yes. It took 26 hours until gmane got updated when posting to the spirit.sf.net ML (and no one answers the main question over there, too :-)). It sometimes takes 1 minute to make my message appear here. So please forgive me for being impatient some times. Markus
participants (2)
-
Joel de Guzman
-
Markus Werle