~ubuntu-branches/ubuntu/trusty/c++-annotations/trusty

« back to all changes in this revision

Viewing changes to yo/classes/anonymous.yo

  • Committer: Package Import Robot
  • Author(s): Frank B. Brokken
  • Date: 2011-09-12 16:08:05 UTC
  • mfrom: (1.1.17 upstream)
  • Revision ID: package-import@ubuntu.com-20110912160805-r9dq68beojgzuien
Tags: 9.0.2-1
New upstream release (editorial changes)

Show diffs side-by-side

added added

removed removed

Lines of Context:
60
60
    These anonymous objects are considered constant as they merely exist for
61
61
passing the information of (class type) objects to functions. They are not
62
62
considered 'variables'. Of course, a tt(const_cast) could be used to cast away
63
 
the const reference's constness, but any change will be lost when the function
 
63
the const reference's constness, but any change is lost once the function
64
64
returns. These anonymous objects used to initialize const references should
65
65
not be confused with rvalue references (section ref(RREF)) which have a
66
66
completely different purpose in life. Rvalue references primarily exist to be