Boost logo

Boost Users :

From: gast 128 (gast128_at_[hidden])
Date: 2004-11-04 13:01:48


Dear all,

I am little bit tired, but probably people can help me and explain why this
does not compile on VC++ 7.1:

struct NCFoo
{
    template <int i>
    void f(){}

    void g(){}
};

void Bla
{
    void (NCFoo::*pmf)() = &NCFoo::f<4>;
    boost::function<void (NCFoo*)> fc1 = &NCFoo::f<4>;
    //does not compile
    boost::function<void (NCFoo*)> fc2 = boost::bind(&NCFoo::f<4>, _1);
//does not compile
    boost::function<void (NCFoo*)> fc3 = &NCFoo::g;
}

Probably it has to do with template argument matching, but can someone give
a quick help?

Wkr,
me

_________________________________________________________________
Play online games with your friends with MSN Messenger
http://messenger.msn.nl/


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