
27 Sep
2004
27 Sep
'04
7:09 p.m.
"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 structure. /Pavel