On 29 Mar 2005 08:39:22 -0800 in comp.lang.c++,
(Marcel Sebbao) wrote,
>I want to use a function object for various callbacks, and also as a
>normal function.
>
>But this function is a template. It is fine, but then I need to
>specify all the time the template
>parameter although it is always the same as the constructor argument:
Parameter deduction is done for straight function templates, but
not for class templates. That is the reason why, for example,
std::bind1st() exists as a helper to construct a std::binder1st
instance. Perhaps you want to follow that approach.