Boost logo

Boost :

From: shunsuke (pstade.mb_at_[hidden])
Date: 2007-05-24 11:22:12


Thorsten Ottosen wrote:
> shunsuke skrev:
>> Thorsten Ottosen wrote:
>>>> Well, one thing I am a little worried about is that
>>>> 'boost::iterator_range' doesn't work with 'boost::is_convertible'.
>>> Could you explain please?
>> is_convertible< int, iterator_range<char *> > returns "true".
>>
>
> ok, so it works afterall, you're just not satisfied with the answer :-)
>
> I guess this is because we can say
>
> iterator_range<...> r = ...;
> if( r )
> {
> ...
> }
>
> What is your problem with that?

I meant

is_convertible<
   *AnyType*, // From
   iterator_range<char *> // To
>

returns "true".

-- 
Shunsuke Sogame

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