Boost logo

Boost :

Subject: Re: [boost] spoiled function declarations
From: vicente.botet (vicente.botet_at_[hidden])
Date: 2010-05-06 02:22:15


----- Original Message -----
From: "Andrew Sutton" <andrew.n.sutton_at_[hidden]>
To: <boost_at_[hidden]>
Sent: Thursday, May 06, 2010 4:24 AM
Subject: Re: [boost] spoiled function declarations

>
>>
>> I have been looking to which Boost libraries provide an interface that
>> "spoils" usual C++ function declaration using macros. So far I found
>> that both Boost.ConceptCheck and Boost.Parameter replace usual C++
>> function declaration using macros (see sample code below).
>>
>> Do you know of any other Boost library that "spoils" usual C++
>> function declaration?
>>
>
> You might say that enable_if "spoils" function declarations. It can be
> intrusive, but it's not a macro.

Yes, enable_if can be seen as a way to check concepts, so maybe this should be taken in consideration on Boost.Contract.

In the same spirit, you can also consider Boost.CallTraits, but I don't think this will have a repercusion on Boost.Contract, but who knows?

Best,
Vicente


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