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 » Developing U++ » U++ TheIDE and Library: Releases and ChangeLogs » Hopefully fixed "Writes to freed blocks" bug in ide - and warning (quiz)
Re: Hopefully fixed "Writes to freed blocks" bug in ide - and warning (quiz) [message #12286 is a reply to message #12285] Tue, 23 October 2007 17:50 Go to previous messageGo to previous message
mdelfede is currently offline  mdelfede
Messages: 1307
Registered: September 2007
Ultimate Contributor
luzr wrote on Tue, 23 October 2007 17:41



Nope. But it returns a reference. However, .At invalidates references to Vector.... So if the left side of statement is evaluated before the right side, you have "free block overwrite"...

Mirek


Uhmmm... what is the reason of invalidating the ref ? At() isn't the same as operator [], for array ? The only reason to invalidate the ref I could imagine is that At() (can) make a deep copy of array...

BTW, I was thinkin' about it yesterday.... why did you use the pick_ stuff instead of something like a pimpl object with copy-on-write ? It's not feasible ?

Ciao

Max

 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: "init" files in packages...
Next Topic: ProgessIndicator::SetColor
Goto Forum:
  


Current Time: Sun Jun 02 16:16:26 CEST 2024

Total time taken to generate the page: 0.02155 seconds