$include_dir="/home/hyper-archives/boost-users/include"; include("$include_dir/msg-header.inc") ?>
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,