Boost logo

Boost :

Subject: Re: [boost] [scope_exit] Doesn't included in Boost yet?
From: Mathias Gaunard (mathias.gaunard_at_[hidden])
Date: 2009-01-13 10:42:37


Giovanni Piero Deretta wrote:

> I still I do not see how can you define *polymorphic* inline functions
> with ScopeExit or a similar technique (which IIRC is basically 'just'
> a local class).

instead of expanding the macro to

...
R operator()(T1 t1) { ... }
...

you generate

...
template<typename T1>
R operator()(T1 t1) { ... }
...


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