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 » Proposal: add Vector::InsertPick(int i, pick_ T&)
Proposal: add Vector::InsertPick(int i, pick_ T&) [message #21187] Fri, 08 May 2009 09:48 Go to previous message
Mindtraveller is currently offline  Mindtraveller
Messages: 917
Registered: August 2007
Location: Russia, Moscow rgn.
Experienced Contributor

Let`s imagine we have some Moveable class M. And we make it`s vector with Vector<M>. So it is possible to use it without any additional constructors if we add new items with Vector<M>::AddPick. But when we need to add something somewhere inside vector and try to call Vector<M>::Insert, compiler requires M to have deep copy ctor. Actually it is not really necessary to have deep copy in this case, as picking would be sufficient. Isn`t it? So I propose adding InsertPick(int i, pick_ T&).
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Incorrect ASSERT in Value::Serialize
Next Topic: XmlParser and <![CDATA[
Goto Forum:
  


Current Time: Thu May 09 21:11:05 CEST 2024

Total time taken to generate the page: 0.03103 seconds