|
Boost : |
From: Peter Dimov (pdimov_at_[hidden])
Date: 2003-01-30 11:23:47
From: "Hubert Holin" <Hubert.Holin_at_[hidden]>
[...]
> 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.
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk