Boost logo

Boost :

From: David Abrahams (dave_at_[hidden])
Date: 2006-01-30 15:59:38


"Andy Little" <andy_at_[hidden]> writes:

> "David Abrahams" wrote
> Andy Little wrote
>>> implicit_cast<t>(S) will succeed wherever
>>> is_convertible<S,T>::value ==true
>>
>> I think that would be a lie for some reasonable definitions of
>> "succeed":
>
> OK how about
>
> implicit_cast<t>(S) will usually 1 succeed if
> boost::is_convertible<S,T>::value
> is true, but will always cause a compile_time error if
> boost::is_convertible<S,T>::value is false.
>
> ------------
> [note1]
>
> The following is one situation where implicit_cast wont succeed
                                                        ^
                                                        missing apostrophe
>
> struct foo
> {
> operator int() { throw "fooled ya"; }
> };
>
> FWIW enclosed updated version of <libs/implicit_cast/implicit_cast.qbk>
> together
> with generated html

The index.html file is mangled. Try using a different MIME type when
enclosing it (or changing the extension).

-- 
Dave Abrahams
Boost Consulting
www.boost-consulting.com

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