Boost logo

Boost :

From: Peter Dimov (pdimov_at_[hidden])
Date: 2001-11-13 08:28:06

From: "David Abrahams" <david.abrahams_at_[hidden]>
> int z2 = boost::bind(&Y::f, _1, "hello")(
> boost::ref(*static_cast<Y*>(&x))); // not OK

Same problem. ref() returns a non-const temporary (so it doesn't work,
despite my claims to the contrary. ;-) )

This can be fixed. ref() can be made to return a const object (in fact it
did so at one point) but I've changed it because const returns tend to break
Borland C++.

I'll fix ref.hpp to return a non-const object only on bcc32.

Peter Dimov
Multi Media Ltd.

Boost list run by bdawes at, gregod at, cpdaniel at, john at