Boost logo

Boost :

From: Thorsten Ottosen (thorsten.ottosen_at_[hidden])
Date: 2007-05-24 16:48:08

shunsuke skrev:
> 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.

You lost me again. There is far too little context to understand it


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