05-22-2016, 01:04 AM
Hmm I think we need a more generic solution than to add extra fields to cItem for each item that has extra meta data. I'll experiment a bit with this myself.
Also, I just came across this code:
unique_ptr<class> ptr = make_unique<class>()
only to release it via release() on return. Doesn't this add more overhead as opposed to just make a heap allocation via 'new' and return the pointer?
Also, I just came across this code:
unique_ptr<class> ptr = make_unique<class>()
only to release it via release() on return. Doesn't this add more overhead as opposed to just make a heap allocation via 'new' and return the pointer?