News for hackers. Stuff that matters.
Re:Why should I have written ZeroMQ in C, not C++ (part II) by megrimlock on Thursday August 30, 2012 @12:20PM (#4455322)
You are on the right track here, but consider what the contained object is:

    std::list <person*> people;
You're right that the instantiated list entry (what the article calls "helper") will directly include a value, but the value here is a pointer to a person, not a person.
Re:Why should I have written ZeroMQ in C, not C++ (part II) by zanny on Thursday August 30, 2012 @12:23PM (#4455350)
There is nothing stopping him from having a list of person and avoiding the memory overhead of references though.
Re:Why should I have written ZeroMQ in C, not C++ (part II) by ch on Thursday August 30, 2012 @01:18PM (#4455664)
I had overlooked that he was using a pointer to the struct, and so I was interpreting things to be that C++ was actually doing under the hood allocations. I'm glad I asked though, cause I was really worried about C++ for a second there :)

So it seems like if the author had wanted he could have used C++ like a safer version of C macros, which if I ever need to use C++ will likely be my approach too.