The Terminator I would love to see some pictures or better yet a video of what you got.
Nexus great article about pointers.
the one that does this
huge_object build_new_object() {
huge_object ret;
…
return ret;
}
Seems odd as that would make a copy of that huge object. Which could be bad if it was a map.
wouldn't you use an auto_ptr//deprecated
or a shared pointer if you wanted to ever avoid having to delete pointers and the associated annoyance of memory leaks.
I genuinely do not know. I'm sure that guy is much better experienced than I am.