//my question is how to write the type ??? below to make it run .
#include <boost/bind.hpp>
#include <iostream>
using boost::bind;
void print()
{
std::cout <<" print" << std::endl;
}
template <class T>
void func(T t)
{
std::cout <<"func1(T t) : " ;
t();
}
int main()
{
func(bind(&print)); //ok
bind ( &func<???>, bind(&print) ) ; //don't know how to write it
}
想加入吗?1.9亿用户正在使用网易邮箱 www.126.com