
23 Dec
2008
23 Dec
'08
2:10 a.m.
Mathias Gaunard wrote:
Sid Sacek wrote:
1) When would I choose unique_ptr<> over auto_ptr<> ?
Always. auto_ptr is deprecated and is dangerous.
unique_ptr, for example, perfectly works with containers.
With containers written to support unique_ptr or with any Container as defined by the standard's concept? -- Michael Marcin