Boost logo

Boost :

Subject: Re: [boost] [local] local functions ready for review
From: Lorenzo Caminiti (lorcaminiti_at_[hidden])
Date: 2011-01-10 16:34:06

On Mon, Jan 3, 2011 at 12:58 PM, Edward Diener <eldiener_at_[hidden]> wrote:
> On 1/3/2011 12:22 PM, Lorenzo Caminiti wrote:
>> Hello all,
>> A few months ago, I probed for interest in a library for local
>> functions with Boost.ScopeExit's variable binding. Based on that
>> discussion, I have now implemented the Boost.Local library.
>> I have uploaded the source files in the
>> Boost Vault under Function Objects:
>> The documentation on the web:
>> Any comment?
> I can understand the potential usefulness of local functions and local
> exits, but it seems local blocks serve little purpose, other than an easier
> syntactical notice, because it is a macro, over a simple block using { }
> which can also of course access variables in the enclosing scope. I do see
> where one can bind variables in local blocks in a few ways but that seems to
> offer little over just normal C++ blocks.
> Nonetheless your library seems interesting. Would you consider putting it in
> the sandbox also ( or instead ) ? That way, when and if you need to update
> it, others can pick up the updates via SVN.

Hi all,

I have uploaded Boost.Local into the Boost SVN sandbox:

Let me know what you think.



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