Deep copy problems
I searched the internet and this news group and am still having
problems grasping this concept. I have:
I initialize a file:
I also set all the pointers of my_files, and the pointers of those
my_files in main_file.
I then create an array which I want to use a deep copy of main_file.
What is throwing me off is the file* vector my_files. How do I do a
deep copy of the struct file so that it also deep copies the file*
Re: Deep copy problems
"Ace Alexander" <email@example.com> wrote in message news:firstname.lastname@example.org om...
> What is throwing me off is the file* vector my_files. How do I do a
> deep copy of the struct file so that it also deep copies the file*
Depends on how you deep copy file*.
It's not clear form the little you've presented here what you are doing.
Is there some reason why you are using file*'s in the vector rather than just
|All times are GMT. The time now is 05:27 PM.|
Powered by vBulletin®. Copyright ©2000 - 2014, vBulletin Solutions, Inc.
SEO by vBSEO ©2010, Crawlability, Inc.