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++ Library : Other (not classified elsewhere) » Heap Leaks Detected
Re: Heap Leaks Detected [message #20868 is a reply to message #20866] Wed, 15 April 2009 13:07 Go to previous messageGo to previous message
cbpporter is currently offline  cbpporter
Messages: 1427
Registered: September 2007
Ultimate Contributor
mrjt wrote on Wed, 15 April 2009 11:00


Doesn't the One<> template provide this functionality?

I stand corrected. Forgot about One. Just proves how rarely in need to keep track of resources through pointers Smile.
luzr wrote on Wed, 15 April 2009 12:40


Definitely.

Although, according to U++ way of thinking (and as it progresses), One is considered to be a containter. And instead of 'new', I believe it is better to use 'Create' for in-place creation.


In place creation is really nice in general. Too bad C++ doesn't offer an in place creation mechanism, something like a delayed constructor.
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Small fix for valgrind
Next Topic: Why struct instead of class?
Goto Forum:
  


Current Time: Mon Apr 28 06:13:21 CEST 2025

Total time taken to generate the page: 0.04032 seconds