Boost logo

Boost :

From: Pavel Vozenilek (pavel_vozenilek_at_[hidden])
Date: 2004-09-27 14:09:45

"Fernando Cacciola" wrote:

> Probably fixed too, but I can't tell.
> The problem is that BCB5.6.4 accepts:
> short v = 1 ;
> short& rv = 2 ;
> int& ri = rv ; // Temporary created here
> I just changed the "short" for "double" in the hope that being a narrowing
> conversion it won't do it.
Still fails. BCB actually wrongly allows a non const
reference to bind to a temporary sometimes
and gives a warning (sometimes?) when it does.

I tried some simple ways to work it around but
it would likely require changes in optional inheritance


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