I don't think you can. You'd have to return a pointer, or perhaps a vector (but returning a big object by value like that is nasty). The ideal solution might be be a refcounted pointer, but that's getting into additional libraries and stuff. Actually I think an auto_ptr might be appropriate here (and it's standard C++), although they are sneaky and you really need to understand how they work to use them.
It would help to know more specifics on what this function does and how you use it.