0 Members and 2 Guests are viewing this topic.
Go for the first version. Never ever use the heap when there's not a good reason to do so!
So how best to do it?
Type object(args);DoSomething(object);
Type* pointer = new Type(args);DoSomething(*pointer);delete pointer;