Boost logo

Boost Users :

From: Wang Yun (a_hao_at_[hidden])
Date: 2005-11-12 00:00:40


Hi,
I tried to bind to a class member function template, but can't pass
compile, what's the correct syntax or this is impossible?

class A
{
public:
    void test()
    {
        function<void()> func;
        func = boost::bind( &A::ttt<int>, this );
    }

    template<typename T>
    T ttt()
    {
        return 1;
    }
};

int _tmain(int argc, _TCHAR* argv[])
{
    return 0;
}

Thanks,
Wang Yun


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