Boost logo

Boost :

From: Joel de Guzman (joel_at_[hidden])
Date: 2005-06-25 09:59:51


Joel de Guzman wrote:
> Pedro Lamarão wrote:
>
>>Pedro Lamarão wrote:
>>
>>
>>>The following test program doesn't work like I would expect.
>
>
> There's a mailing list for spirit:
> https://lists.sourceforge.net/lists/listinfo/spirit-general
>
> Please post there. Thanks!

Well, since this is an easy one...

Try changing
     rule_t test_hit = range_p(0x80, 0x7F);
to
     rule_t test_hit = range_p(char(0x80), char(0x7F));

Why? Because range_p(0x80, 0x7F) returns a range<int>,
not a range<char> that you are expecting.

Regards,

-- 
Joel de Guzman
http://www.boost-consulting.com
http://spirit.sf.net

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