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

Home » Community » Coffee corner » Thoughts about resource management
Re: Thoughts about resource management [message #30847 is a reply to message #30838] Tue, 25 January 2011 00:39 Go to previous message
mirek is currently offline  mirek
Messages: 14291
Registered: November 2005
Ultimate Member
Mindtraveller wrote on Mon, 24 January 2011 12:14

Thank you very much for this link. It mostly discusses the choice between refcount and pick_ approaches, which is a very interesting discussion itself. But my question was slightly different.
I was wondering if U++ approach is good for resources with dynamic lifetime.


Well, frankly, I do not know....

Anyway, in theory, using heap is equivalent to using some global scope container. So perhaps in this sense, you could say 'it belongs to global scope' Smile

Now that is hardly useful proof. Anyway, I believe you can always benefit to move this 'global scope container' down to some more fitting scope....
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Antigrain author on text rasterisation
Next Topic: The power of Waf
Goto Forum:
  


Current Time: Mon Sep 14 09:46:48 GMT+2 2026

Total time taken to generate the page: 0.01085 seconds