Boost logo

Boost :

Subject: Re: [boost] [range] irange is not very eloquent
From: Mathias Gaunard (mathias.gaunard_at_[hidden])
Date: 2010-04-28 15:04:42


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).


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