Skip to content
Better HN
Top
New
Best
Ask
Show
Jobs
Search
⌘K
undefined | Better HN
0 points
ezy
14y ago
0 comments
Share
Likewise for auto_ptr<T>, but he glosses over that.
0 comments
default
newest
oldest
shasta
14y ago
How do you figure? There isn't an implicit conversion from auto_ptr<T> to T *.
obiterdictum
14y 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