$include_dir="/home/hyper-archives/boost/include"; include("$include_dir/msg-header.inc") ?>
From: David Abrahams (david.abrahams_at_[hidden])
Date: 2001-11-13 14:34:14
Hi Peter,
What do I need to do in order to compile this, or something with equivalent
functionality, on VC6?
Thanks,
Dave
----
struct X
{
int f(void*, double);
};
template <class A1>
int call(void* obj, int (X::*f)(void*, A1), A1 a1)
{
boost::bind(
boost::bind(f, _1, _2, a1),
static_cast<X*>(obj),
obj);
}
int ff(void* obj, double other)
{
return call(obj, &X::f, other);
}
===================================================
David Abrahams, C++ library designer for hire
resume: http://users.rcn.com/abrahams/resume.html
C++ Booster (http://www.boost.org)
email: david.abrahams_at_[hidden]
===================================================