--- Begin Message ---
Subject: |
[support #102336] Use const Type& instead of Type& |
Date: |
Wed, 06 Aug 2003 13:53:28 -0400 |
User-agent: |
Mozilla/5.0 (X11; U; Linux i686) Gecko/20030714 Galeon/1.3.5 Debian/1.3.5.20030714-3 |
Support Request #102336, was updated on Wed 08/06/03 at 17:53
You can respond by visiting:
http://savannah.nongnu.org/support/?func=detailsupport&support_id=102336&group_id=1830
Category: None
Status: Open
Priority: 5
Summary: Use const Type& instead of Type&
By: mpComplete
Date: Wed 08/06/03 at 17:53
Logged In: YES
user_id=21640
Browser: Mozilla/5.0 (X11; U; Linux i686) Gecko/20030714 Galeon/1.3.5
Debian/1.3.5.20030714-3
There are a few places where it would be convenient to
use temporary objects, like slide = PG_Slider(...); or
some other cases (I forget exactly). Since these
functions accept non-const references, I can't pass in
temporary objects. If a function doesn't modify its
argument, the argument should be passed in as const
Type& for such cases.
----------------------------------------------------------------------
You can respond by visiting:
http://savannah.nongnu.org/support/?func=detailsupport&support_id=102336&group_id=1830
_______________________________________________
Message sent via/by Savannah
http://savannah.nongnu.org/
--- End Message ---