11 Sep
2008
11 Sep
'08
7:47 a.m.
The technique works exactly as you have described: if f
is a function template and you write P *p=&f;
T1 and Tn are matched against the function type P (if possible). This is explicitly stated in section 14.8.2.2 of the standard (if you don't have it grab a draft copy at http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2008/n2723.pdf ).
HTH,
It does a lot - thank you! And by the way, multi-index container has made my code a lot smaller, neater, more readable and more exception safe, so thanks for that too!