|
Boost Users : |
Subject: Re: [Boost-users] [Spirit] Qi lexeme only taking the first word
From: Gavin Lambert (boost_at_[hidden])
Date: 2018-11-07 06:02:25
On 7/11/2018 16:28, I wrote:
> Another possibility, which I can't test because coliru appears to be
> grumpy at present, is to try using:
>
> Â full_id %= as_string[lexeme[id >> *(char_('.') >> id)]];
Actually, since you're consuming a consecutive sequence of input
characters without skipping any whitespace, you could probably use this
instead, which might be faster (though that's just a guess; measure it!):
full_id %= as_string[raw[id >> *('.' >> id)]];
(I was half expecting as_string to not be needed here, but apparently it
still is.)
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