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 » Inconsistency between Vector and Index
Re: Inconsistency between Vector and Index [message #52136 is a reply to message #52131] Wed, 24 July 2019 05:20 Go to previous message
Novo is currently offline  Novo
Messages: 1358
Registered: December 2006
Ultimate Contributor
mirek wrote on Tue, 23 July 2019 03:21
You are right, fixed.

Thanks!

It looks like the issue is still not fixed completely because GrowAdd(const T& x) still calls clone(x).
Also, Array::Add(const T& x) still makes a clone.
Vector::Insert(int i, const T& x) also makes a clone.

IMHO, this issue with clone is a fundamental change of a design. It is, probably, easier to change Index to make clone instead.
Changing semantics of XXX(const T& x) calls will break a lot of code.
It is up to you to decide how it will work in the future.


Regards,
Novo
 
Read Message
Read Message
Read Message
Previous Topic: MemorySanitizer: use-of-uninitialized-value in CoWork
Next Topic: Problem with LanguageInfo
Goto Forum:
  


Current Time: Mon May 06 18:56:48 CEST 2024

Total time taken to generate the page: 0.01811 seconds