Boost logo

Boost :

Subject: Re: [boost] Boost.Local Review (Nov 10, 2011 to Nov 19, 2011)
From: Vicente J. Botet Escriba (vicente.botet_at_[hidden])
Date: 2011-11-17 12:05:59


Le 17/11/11 17:51, Lorenzo Caminiti a écrit :
>
> Unfortunately, I have looked at the implementation and Boost.Typeof is
> used by the FUNCTION_NAME macro to deduce the functor type :( It's a
> long story (it has to do with support for recursive local
> functions...) but I remember trying to not use typeof in NAME and I
> couldn't get around it. Anyway, I will try again to get rid of typeof
> in NAME. If I can do that (maybe even just for non recursive local
> functions), I will support this syntax where the return type is
> specified within the local function parameters (so I don't have to use
> another macro ..._WITH_RESULT).
>
> Expansion does not use typeof (maybe):
>
> int y = 10;
> BOOST_LOCAL_FUNCTION(int x, const bind(int) y, return int) { // (1)
> return x + y;
> } BOOST_LOCAL_FUNCTION_END(int)
> int z = int(1); // 11
>
Hi,

thanks for the effort to limit the dependencies.

Best,
Vicente


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