
30 Jan
2006
30 Jan
'06
5:52 p.m.
"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 struct foo { operator int() { throw "fooled ya"; } }; FWIW enclosed updated version of <libs/implicit_cast/implicit_cast.qbk> together with generated html regards Andy Little