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 » Deepcopying One container
Re: Deepcopying One container [message #23576 is a reply to message #23574] Mon, 02 November 2009 10:21 Go to previous messageGo to previous message
cbpporter is currently offline  cbpporter
Messages: 1427
Registered: September 2007
Ultimate Contributor
Well using references works:
	{
		One<A> &c=a;
		c->DoSmthng();
	}
	{
		One<A> &c=b;
		c->DoSmthng();
	}


But since One is an encapsulation of a pointer, I believe it should not inherit <<= from DeepCopyOption, but rather do a low level copy of the pointer so that the placement new is avoided.
 
Read Message icon5.gif
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: *Map::IsPicked() is missing
Next Topic: Latest change on FileMapping::Map() wrong for win32
Goto Forum:
  


Current Time: Wed Apr 30 23:46:44 CEST 2025

Total time taken to generate the page: 0.02305 seconds