Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » Community » Newbie corner » Vector deep copy constructor
Vector deep copy constructor [message #44724] Fri, 05 June 2015 11:11 Go to next message
cbpporter is currently offline  cbpporter
Messages: 1401
Registered: September 2007
Ultimate Contributor
Generally I use the old-school U++ conventions regarding to ownership and moving, but I have a handful of classes that by design must always be copied. The classes have a lot of containers in them.

In the past I had to write copy constructors for them and do deep copy for those vectors.

Now I think that Vector no longer has move copy by default? Can I get rid of the manual copy constructors in these classes now and have deep copy on everything?

I'm not using C++ 1x.
Re: Vector deep copy constructor [message #44729 is a reply to message #44724] Mon, 08 June 2015 08:31 Go to previous message
cbpporter is currently offline  cbpporter
Messages: 1401
Registered: September 2007
Ultimate Contributor
Looking over the documentation, WithDeepCopy looks what it is doing what I am looking for.
Previous Topic: Basic package requirements
Next Topic: U++ as shared dll
Goto Forum:
  


Current Time: Thu Mar 28 20:14:09 CET 2024

Total time taken to generate the page: 0.01296 seconds