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 » BiArray::AddTail/AddHead pick problems
Re: BiArray::AddTail/AddHead pick problems [message #16879 is a reply to message #16876] Sat, 19 July 2008 09:36 Go to previous messageGo to previous message
mirek is currently offline  mirek
Messages: 14265
Registered: November 2005
Ultimate Member
Ops, you are right. Should be:

void AddHead(const T& x) { bv.AddHead(DeepCopyNew(x)); }
void AddTail(const T& x) { bv.AddTail(DeepCopyNew(x)); }

Well, in fact, these methods might be confusing a bit, therefore I usually rather use

x.AddHead() <<= element;

... that is why this error escaped for so long Sad


Mirek
 
Read Message
Read Message
Read Message
Previous Topic: XMLNode error
Next Topic: zlib
Goto Forum:
  


Current Time: Tue Jul 08 03:53:38 CEST 2025

Total time taken to generate the page: 0.03133 seconds