Boost logo

Boost :

Subject: Re: [boost] [range] irange is not very eloquent
From: vicente.botet (vicente.botet_at_[hidden])
Date: 2010-04-28 16:39:01


----- Original Message -----
From: "Mathias Gaunard" <mathias.gaunard_at_[hidden]>
To: <boost_at_[hidden]>
Sent: Wednesday, April 28, 2010 9:04 PM
Subject: Re: [boost] [range] irange is not very eloquent

vicente.botet a écrit :

>>> I was wondering if irange can be used with integral types as char and bool?
>>> For example,
>>>
>>> integer_range< ??? > lower_case = irange('a','z'+1);
>
> Could you comment the above?

Probably not going to work because this searches for irange(char, int).
try irange('a', char('z'+1)) or irange<char>('a', 'z'+1).

_______________________________________________
Thanks for the comment.

Maybe you can tell what is the type of ???

integer_range< ??? > lower_case = irange<char>('a','z'+1);

Should I use Boost.Typeof?

Best,
Vicente


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