Boost logo

Boost :

From: shunsuke (pstade.mb_at_[hidden])
Date: 2007-05-24 13:38:01

Thorsten Ottosen wrote:
>> I meant
>> is_convertible<
>> *AnyType*, // From
>> iterator_range<char *> // To
>> returns "true".
> I'm not sure why is_convertible<> behaves like that, I dont recall
> having done any thing to support that explicitly.
> Anyway, what is the problem? AFAICT, it happens for all class with a
> non-explicit templated constructor.

I sometimes expect the correct convertibility for enable_if_convertible.
Well, what surprised me is that msvc fails to compile
   value_type x = iter[c]; // 'iter[c]' returns a proxy which is convertible to value_type.
if value_type has such a constructor.


Shunsuke Sogame

Boost list run by bdawes at, gregod at, cpdaniel at, john at