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

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: 14291
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: Sat Aug 01 01:26:25 GMT+2 2026

Total time taken to generate the page: 0.00795 seconds