Skip to content
Better HN
Top
Best
Ask
Show
New
Jobs
Search
⌘K
0 points
ezy
15y ago
0 comments
Save
Share
Likewise for auto_ptr<T>, but he glosses over that.
0 comments
2 comments · 1 top-level
top
newest
oldest
shasta
15y ago
· 1 in thread
How do you figure? There isn't an implicit conversion from auto_ptr<T> to T *.
obiterdictum
15y ago
There isn't. There are two explicit methods to get raw pointer value with different semantics:
- get(): auto_ptr retains the ownership
- release(): auto_ptr loses the ownership
j
/
k
navigate · click thread line to collapse