> passing a temporary to a function taking a reference (or a pointer for
> that matter) is suspect
There is conceptually no problem in creating a temporary, passing a
_nonconst_ reference this to a function (that may change that temporary)
and throwing away the (possibly changed) temporary if one
> "Lars" == Lars Gullik Bjønnes <[EMAIL PROTECTED]> writes:
Lars> Not very cryptic...
I should have written: "I am too lazy to figure out what it means" :)
JMarc
Jean-Marc Lasgouttes <[EMAIL PROTECTED]> writes:
| Here it is (in Juergen's latest changes):
|
| cxx: Warning: ../../../lyx-devel/src/insets/insettext.C, line 599: temporary
| used for initial value of reference to non-const (anachronism)
| Inset * inset = bv->checkInsetHit(TEXT(bv
Here it is (in Juergen's latest changes):
cxx: Warning: ../../../lyx-devel/src/insets/insettext.C, line 599: temporary
used for initial value of reference to non-const (anachronism)
Inset * inset = bv->checkInsetHit(TEXT(bv), tmp_x, tmp_y-TEXT(bv)->first,
--