Boost logo

Boost :

From: Jarrad Waterloo (jwaterloo_at_[hidden])
Date: 2007-07-10 14:06:04


How does one do a push_back with push_back_a when one is using closures
where the first member is a vector<any>? Similar knowledge is needed when
member1 is a map<string, any>!
I get the following error:

1>c:\program
files\boost\boost_1_34_0\boost\spirit\actor\push_back_actor.hpp(48) : error
C2039: 'push_back' : is not a member of 'phoenix::actor<BaseT>'
1> with
1> [
1>
BaseT=phoenix::closure_member<0,phoenix::closure<std::vector<boost::any>,pho
enix::nil_t,phoenix::nil_t>>
1> ]

When I have the following code
...
struct any_s_closure : boost::spirit::closure<any_s_closure, vector<any> >
{
        member1 values;
};
...
p_array = '['
>> !(p_value[push_back_a(p_array.values)] % ',')
>> ']';
...
typedef rule<ScannerT, double_closure::context_t> rule_d;
rule_d p_number;


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk