Boost logo

Boost :

Subject: Re: [boost] [modularization] LocalFunction and ScopedExit cycle
From: Lorenzo Caminiti (lorcaminiti_at_[hidden])
Date: 2014-07-13 00:47:35


Hello Vicente/all,

On Mon, Jun 9, 2014 at 12:59 AM, Vicente J. Botet Escriba
<vicente.botet_at_[hidden]> wrote:
> Lorenzo told me
>
> "So I'll move only the few macros that ScopeExit needs out of
> local_function/detail/preprocessor and put them in scope_exit.hpp. I'll
> leave the other macros needed by LocalFunction but not by ScopeExit in
> local_function/detail/preprocessor. I think that's best so scope_exit.hpp
> only defines the pp macros it needs, LocalFunction defines the additional
> macros it needs, ScopeExit no longer depends on LocalFunction, and
> LocalFunction will continue to depend on ScopeExit. "
>
> This will solve this cycle.

Please find attached a version of scope_exit.hpp that does /not/ use
any of Boost.LocalFunction headers.

I have tested it locally compiling and running all Boost.ScopeExit
examples and tests using MSVC 2010. I am happy to commit this to
boost/trunk/ at any time...

Thanks,
--Lorenzo




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