Boost logo

Boost :

From: David Abrahams (dave_at_[hidden])
Date: 2003-09-09 13:40:42

"David B. Held" <dheld_at_[hidden]> writes:

>> "JOAQUIN LOPEZ MU?Z" <joaquin_at_[hidden]> wrote in message
>> This crucial point of this technique is having an utility
>> to determine member function existence at compile-time.
>> A quick google on the Usenet reveals similar snippets
>> of code to do this, all of them more or less related and
>> with various degrees of success across a wide span of
>> compilers. Maybe some bold booster can have them
>> refactored in a metaprogramming utility with as many
>> compilers supported as possible. I see applications of
>> this outside the swap problem.
> I believe it's spelled "enable_if", and it's being discussed
> even as we speak.

Not exactly. enable_if takes advantage of the same basic technique
(SFINAE), though.

Dave Abrahams
Boost Consulting

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