>From: "David Abrahams" <[EMAIL PROTECTED]>

> Terje Slettebų <[EMAIL PROTECTED]> writes:
>
> > Why would we want that? What is this useful for?
>
> It would be useful for writing a templated implicit conversion
> operator with restricted applicability via SFINAE.

Right. I've read up properly on the thread, now. I see how this could be
useful. Sorry for not having done that earlier.

> SFINAE is a feature of the language which (coincidentally) allows a
> technique for removing functions from the overload set based on some
> compile-time computation.  This technique relies on having a return
> type or parameter type to play with.  Unfortunately, implicit
> conversion operators have neither.
>
> Read all about SFINAE in Jossutis & Vandevoorde.

<g> I've done it. Also, when the term first time was brought up here, it was
pointed out that this technique has been used for quite a while, also before
the book got published. However, now we have a name for it. :)


Regards,

Terje

_______________________________________________
Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost

Reply via email to