On 10/31/05 2:11 AM, David A. Lyons didst favor us with:
> On Oct 30, 2005, at 3:06 PM, Lawrence Sanbourne wrote:
>> And if you don't store pointers, then the STL has to copy the FSRef
>> into some memory.
>
> Actually...there's nothing stopping you from "creating" the FSRefs
> directly in the vector.
>
> vector<FSRef> v;
> ...
> i = v.size();
> v.resize( big enough );
> status = ::FSGetCatalogInfoBulk(..., &v[i], ...);
In this case the vector in question is a stack of folders built as they're
encountered while traversing various folders, so the above isn't an option.
Larry
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Carbon-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/carbon-dev/email@hidden
This email sent to email@hidden