Boost logo

Boost :

From: David Abrahams (dave_at_[hidden])
Date: 2003-01-13 07:39:12


Terje Slettebø <tslettebo_at_[hidden]> 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.

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.

-- 
                       David Abrahams
   dave_at_[hidden] * http://www.boost-consulting.com
Boost support, enhancements, training, and commercial distribution

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