|
Boost Users : |
Subject: [Boost-users] behavior conditional on template argument
From: Hicham Mouline (hicham_at_[hidden])
Date: 2009-01-21 05:23:16
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,
Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net