Login or Sign Up
Logging in...
Remember me
Log in
Or
Sign Up
Forgot password or user name?
Log in with
Search in titles only
Search in C only
Search
Advanced Search
Forums
Product Launch
Updates
Today's Posts
Member List
Calendar
Home
Forum
Topic
C
Nameless temporary objects in c++
Collapse
X
Collapse
Posts
Latest Activity
Photos
Page
of
1
Filter
Time
All Time
Today
Last Week
Last Month
Show
All
Discussions only
Photos only
Videos only
Links only
Polls only
Events only
Filtered by:
Clear All
new posts
Previous
template
Next
bsaritha10
New Member
Join Date:
Mar 2010
Posts:
1
#1
Nameless temporary objects in c++
Mar 17 '10, 12:21 PM
tell me how to create nameless temporary objects in C++?
for what it is useful
Banfa
Recognized Expert
Expert
Join Date:
Feb 2006
Posts:
9067
#2
Mar 17 '10, 12:31 PM
You don't create nameless temporary objects, the compiler does, it can happen when
the code uses an object direct by just calling its constructor without assign that object to a variable.
When returning from a function that returns an object.
Comment
Post
Cancel
Previous
template
Next
Working...
Yes
No
OK
OK
Cancel
👍
👎
☕
Comment