From: "Hubert Holin" <[EMAIL PROTECTED]>
[...]

> but if I have a templated functions instead
>
>    template<typename T>
>    void  ft(int)
>    {
>    }
>
> then the following invocation will not compile
>
>    test->add(BOOST_TEST_CASE(::boost::bind(&ft<int>, 1)));

This is a C++ problem. You may need to first create a function pointer:

void (*pf) (int) = &ft<int>;

and then use bind(pf, 1). The other option is to turn ft into a function
object.

_______________________________________________
Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost

Reply via email to