On Tuesday 17 December 2002 04:06 am, Greg Dehaas wrote:
> When I try your suggestion, I get the error
> 'function does not take 2 parameters'
> (If I do not use the BINDFUNCTION macros)
>
> It seems to dislike doing this with parameters
>
> Greg
I would have to see the problematic code before I c
---You wrote...-
> The BINDFUNCTION macros aren't actually needed. Anywhere that you would
have:
>
> boost::functionN<...> f;
> f = BINDFUNCTION(g);
>
> You could have just written:
> boost::functionN<...> f;
> f = g;
>
> I'd also strongly suggest that you don't u
On Monday 16 December 2002 01:39 am, Greg Dehaas wrote:
> //Macros for binding functions + methods
> #define BINDMETHOD5(object,function)
> boost::bind(function,object,_1,_2,_3,_4,_5)
> #define BINDFUNCTION5(function) boost::bind(function,_1,_2,_3,_4,_5)
> #define BINDMETHOD4(object,function)
> boo
Thanks to Douglas Gregor for the bind1st and boost::bind help :)
I wrote some macros/etc that came out to something like this:
//Boost
#include
#include
//Macros for binding functions + metho