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 » why not "T & Add(const T & x)" in all containers
Re: why not "T & Add(const T & x)" in all containers [message #28794 is a reply to message #28792] Fri, 17 September 2010 09:15 Go to previous messageGo to previous message
kohait00 is currently offline  kohait00
Messages: 939
Registered: July 2009
Location: Germany
Experienced Contributor
hi mirek, thanks.
just a question aside: why does DeepCopyConstryct return T& instead of T*? it kinda differs from the other 'patterns' DeepCopyNew, ::new(p) T() etc..which all return T* at that level.

EDIT: i think i understand why..there occure strange compile errors for ArrayCtrl Vector< Vector< Value > > things. and i kind of cant figure out why and how to potentially fix it.

nonetheless, Add is done, what about Insert and Set behaviour? should do the same..

i've added the current proposal, based on your changes.
  • Attachment: Core.rar
    (Size: 310.15KB, Downloaded 228 times)

[Updated on: Fri, 17 September 2010 10:33]

Report message to a moderator

 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: InitCaps() proposal
Next Topic: Incorrect implementation of INITBLOCK (and similar macros) in case when flagBLITZ is not defined.
Goto Forum:
  


Current Time: Mon Aug 25 10:51:47 CEST 2025

Total time taken to generate the page: 0.06572 seconds