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