Boost logo

Boost Users :

From: hongleij_at_[hidden]
Date: 2007-02-01 08:59:45


 //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
}



Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net