
13 Jan
2009
13 Jan
'09
3:42 p.m.
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) { ... } ...