Im not sure how to use auto ptr to allcoate a memory for a structure .