mirror of
https://github.com/adambard/learnxinyminutes-docs.git
synced 2024-12-24 01:51:38 +00:00
Merge pull request #1370 from dreamtocode/patch-2
Update c++.html.markdown
This commit is contained in:
commit
6ac7368b3b
@ -264,7 +264,7 @@ string retVal = tempObjectFun();
|
|||||||
|
|
||||||
// What happens in the second line is actually:
|
// What happens in the second line is actually:
|
||||||
// - a string object is returned from tempObjectFun
|
// - a string object is returned from tempObjectFun
|
||||||
// - a new string is constructed with the returned object as arugment to the
|
// - a new string is constructed with the returned object as argument to the
|
||||||
// constructor
|
// constructor
|
||||||
// - the returned object is destroyed
|
// - the returned object is destroyed
|
||||||
// The returned object is called a temporary object. Temporary objects are
|
// The returned object is called a temporary object. Temporary objects are
|
||||||
|
Loading…
Reference in New Issue
Block a user