|
Boost : |
From: Jeremy Siek (jsiek_at_[hidden])
Date: 2001-12-12 13:29:08
On Wed, 12 Dec 2001, Peter Dimov wrote:
> From: "Jeremy Siek" <jsiek_at_[hidden]>
> >
> > I don't see an easy way to fix the problem :(
>
> It just occured to me that if you change the return value to be const, bind
> will work (except when the return value is a builtin.)
Right, but in my case the return value is a builtin :(
I could change those builtin's to structs, but this would be a MAJOR
change to BGL, causing lots of user and example code to be rewritten.
Also, this isn't really just a BGL issue. The same problem will come up
whenever someone has a custom iterator that returns builtin's by value.
Cheers,
Jeremy
----------------------------------------------------------------------
Jeremy Siek http://www.osl.iu.edu/~jsiek/
Ph.D. Student, Indiana Univ. B'ton email: jsiek_at_[hidden]
C++ Booster (http://www.boost.org) office phone: (812) 855-3608
----------------------------------------------------------------------
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk