|
Boost : |
From: David Abrahams (david.abrahams_at_[hidden])
Date: 2001-11-13 14:19:47
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] ===================================================
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk