
13 Jan
2009
13 Jan
'09
3:58 p.m.
On Tue, Jan 13, 2009 at 4:42 PM, Mathias Gaunard <mathias.gaunard@ens-lyon.org> wrote:
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) { ... } ...
That's the problem. Unfortunately you can't have a templated local class. AFAIK, Not even in C++0x. -- gpd