Boost logo

Boost :

Subject: Re: [boost] [local] Bound types for concepts, etc?
From: Vicente Botet (vicente.botet_at_[hidden])
Date: 2011-02-13 15:17:29


Lorenzo Caminiti wrote:
>
> On Sun, Feb 6, 2011 at 2:25 PM, Mathias Gaunard
> <mathias.gaunard_at_[hidden]> wrote:
>> As I said, it does. With Boost.Local, you can still call polymorphic
>> functions on the variables captured from scope without specifying the
>> types
>> of the arguments.
>
> I am thinking to provide the type of the bound parameters within the
> local function body as `<BOUND_PARAM_NAME>_type`. This way you can use
> such types to check concepts, etc...
>
> Is there value in this?
>
>

Yes sure. What about adding a macro BOOST_LOCAL_TYPEOF that hides the name
of the type and will allow you to change it if some constraints force appear
in the future?

Best,
Vicente

-- 
View this message in context: http://boost.2283326.n4.nabble.com/local-Bound-types-for-concepts-etc-tp3302987p3304052.html
Sent from the Boost - Dev mailing list archive at Nabble.com.

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