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