noobs and pointers

J

James Kanze

Could not the same be said of using auto objects?

Certainly. But I never asked "why should a program be forced to
depend on unsafe, raw auto objects?"
Either way it's up
to the programmer to use the idiom correctly.

Yup. That, and choosing the right idiom, are exactly my points.
 
R

Roland Pibinger

And most of the time, if an object has identity,
it also has an explicit lifetime, which must be managed; you
can't foster such management off to a container.

Exactly. A Container is not necessarily a lifetime manager. People who
advocate 'smart containers' often misunderstand this.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,994
Messages
2,570,223
Members
46,812
Latest member
GracielaWa

Latest Threads

Top