
21 Jan
2009
21 Jan
'09
10:23 a.m.
Hello, I have a template function template <typename M> void f(const M&) { // call M.f1() // call M.f2() // some Ms have a function f1Andf2() which does f1()+ f2() work faster // how can I write code that runs f1Andf2() if it's there // otherwise runs f1() then f2() } regards,