boost function problem

4 Nov
2004
4 Nov
'04
6:01 p.m.
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/
7506
Age (days ago)
7506
Last active (days ago)
0 comments
1 participants
participants (1)
-
gast 128