Boost logo

Boost :

From: Hartmut Kaiser (hartmutkaiser_at_[hidden])
Date: 2003-08-22 01:03:57


Paul Hamilton wrote:

> > list_wo_item = list_p((*anychar_p)[append(vec_list)], ',');
>
> I couldn't get this to do anything. How would it work in the more
> complicated example above. Looking through the code, I
> couldn't really
> understand what t actually does.

There is a version of the list_p, which allows to specify the list
terminator:

    ch_p('[') >> list_p((*anychar_p)[append(vec_list)], ',', ']');

Regards Hartmut


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