U++ framework
Do not panic. Ask here before giving up.

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: 1428
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: Sat Oct 24 08:39:02 GMT+2 2026

Total time taken to generate the page: 0.00646 seconds