From: Brian Braatz (brianb_at_[hidden])
Date: 2005-01-07 18:25:15
> -----Original Message-----
> Brian Braatz wrote:
> > With the following code, If you UNCOMMENT the "// public : Base"
> > you get compiler errors (????)
> > I have tested this with MS VC 7.1 against both 1.31 and 1.32
> > boost with the same results.
> > Any idea why this is happening? (full sample code I wrote is
> > std::string ReturnAString();
> > [snip]
> > bind(Base::ReturnAString,_1);
> [ Reece Wrote]
> This is the problem. Try:
THANK YOU BOTH REECE AND DANIEL :) (!!!!!!!!!!!!!!!)
That fixed it.
What is STRANGE is that "sometimes"
ironically, I have about 40 calls that use that syntax that work just
I noticed in the docs, when you have a inline functor, the docs use
But when you have something that was not inline (??) you use:
I was never clear on when you and when you do NOT use the "&" with the
I will convert everything in my "real code" to using the & always.
Does anyone know when you should and should not use the & in a bind
call? Or is this is compile time checking hole that exists due to the
mechanisms bind relies upon?
Am I a complete idiot?
(I find it important to always hold open this option as a possibility in
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk