Boost logo

Boost Users :

Subject: [Boost-users] Boost.Spirit. Karma: Kleene star with space separator
From: Matwey V. Kornilov (matwey.kornilov_at_[hidden])
Date: 2016-03-01 08:33:00


Hello

There is an example of usage Keele star with Karma generator:
http://www.boost.org/doc/libs/1_60_0/libs/spirit/doc/html/spirit/karma/reference/operator/kleene.html

std::vector<double> v;
v.push_back(1.0);
v.push_back(2.0);
v.push_back(3.0);
test_generator_attr_delim("1.0 2.0 3.0 ", *double_, space, v);

How could the remaining space be omitted? Is (double_ % space) supposed
to be used instead for such cases?


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