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 » U++ Library support » U++ Core » ONE and assignement
Re: ONE and assignement [message #50107 is a reply to message #50105] Sun, 29 July 2018 10:22 Go to previous messageGo to previous message
mdelfede is currently offline  mdelfede
Messages: 1308
Registered: September 2007
Ultimate Contributor
So the only way to deep copy an One<> is to use:


One<AClass> A = new AClass(1, 2, 3);
One<AClass> B;

B = new AClass(*A, 1);



Assuming that AClass has a deep copy constructor, right ?
I'm missing the polymorfic deep copy...
Btw, also the clone() complains about missing DeepCopyNew.
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: RegExp this'n that
Next Topic: [solved] Extensions to Xmlize for arrays
Goto Forum:
  


Current Time: Mon May 12 01:43:56 CEST 2025

Total time taken to generate the page: 0.02862 seconds