
31 Mar
2006
31 Mar
'06
5:46 a.m.
Larry Evans wrote:
It's the class template version of your function template, new_. IOW, it's something like: ... Note there's no T* in any CTOR arguments (unless, of course, there's some T CTOR taking a T*).
Also note, there's no Overhead<T> as there is in auto_overhead, but that's just another feature (designed to save the extra allocation needed shared_ptr) and wouldn't be relevant to this discussion, AFAICT.
Is auto_overhead still unclear?
I'm afraid I still don't grasp. In paticular I'm missing an motivating example (use case) of what can be done with auto_overhead but not with new_. Regards, Vaclav