Y
Hacker News
new
|
ask
|
show
|
jobs
by
ezy
5520 days ago
Likewise for auto_ptr<T>, but he glosses over that.
1 comments
shasta
5520 days ago
How do you figure? There isn't an implicit conversion from auto_ptr<T> to T *.
link
obiterdictum
5520 days 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
link