$include_dir="/home/hyper-archives/boost-users/include"; include("$include_dir/msg-header.inc") ?>
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/