Boost logo

Boost :

Subject: Re: [boost] [local_function] any interest in a LocalFunction library?
From: Dmitry Goncharov (dgoncharov_at_[hidden])
Date: 2010-08-23 08:43:57


> -----Original Message-----
> From: boost-bounces_at_[hidden] [mailto:boost-
> bounces_at_[hidden]] On Behalf Of Lorenzo Caminiti
> Sent: Sunday, August 22, 2010 7:10 PM
> To: boost_at_[hidden]
> Subject: [boost] [local_function] any interest in a LocalFunction library?
>
> Hello all,
>
> Is there interest in a library that implement local functions for C++?
>
<snip>

What's wrong with the following?
Aside from the know limitations. (local::f cannot be a template arg or be a function template).
void f()
{
        struct local
        {
                static void f() {}
        };
        local::f();
}

Does your library have advantages over this?

Regards, Dmitry


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