Home » U++ Library support » U++ Core » Ptr improve
Re: Ptr improve [message #32569 is a reply to message #32567] |
Wed, 25 May 2011 10:27 |
|
kohait00
Messages: 939 Registered: July 2009 Location: Germany
|
Experienced Contributor |
|
|
the strong typed nature of C++ and especially U++ leaves you with a lot of control and responsibility. imho constructing object without care (like it is in C#) is both easy and wasting performance, inviting for careless handling with ressources. knowing what's up and needed is best practice to keep apps reactive. beeing that said, i go along with mr_pen & mirek.
this does not mean that Shared<> is just bad per se. it is merley a helper. but seeing it as an invitation to go GC is a bit too far i think. as mirek said, GC is compiler support. either have it or dont. there is no safe way in between.
some more info about shared_ptr usage, which clearly shows that it brings a lot of hassle as well. hassle one can spare when investing the thinking power in a correct model. a lot of work to save work is cumbersome.
http://www.codeproject.com/KB/stl/boostsmartptr.aspx#Example : Using shared_ptr in containers
[Updated on: Wed, 25 May 2011 10:28] Report message to a moderator
|
|
|
|
|
Ptr improve
By: tojocky on Mon, 16 May 2011 14:07
|
|
|
Re: Ptr improve
By: mirek on Mon, 16 May 2011 15:05
|
|
|
Re: Ptr improve
By: tojocky on Mon, 16 May 2011 15:31
|
|
|
Re: Ptr improve
By: tojocky on Mon, 16 May 2011 16:06
|
|
|
Re: Ptr improve
By: mirek on Mon, 16 May 2011 23:13
|
|
|
Re: Ptr improve
|
|
|
Re: Ptr improve
By: tojocky on Wed, 18 May 2011 13:12
|
|
|
Re: Ptr improve
|
|
|
Re: Ptr improve
By: tojocky on Fri, 20 May 2011 08:32
|
|
|
Re: Ptr improve
|
|
|
Re: Ptr improve
|
|
|
Re: Ptr improve
|
|
|
Re: Ptr improve
By: mirek on Fri, 20 May 2011 13:19
|
|
|
Re: Ptr improve
|
|
|
Re: Ptr improve
|
|
|
Re: Ptr improve
|
|
|
Re: Ptr improve
|
|
|
Re: Ptr improve
|
|
|
Re: Ptr improve
By: mirek on Mon, 23 May 2011 22:37
|
|
|
Re: Ptr improve
|
|
|
Re: Ptr improve
|
|
|
Re: Ptr improve
By: mirek on Tue, 24 May 2011 17:46
|
|
|
Re: Ptr improve
By: mr_ped on Tue, 24 May 2011 18:28
|
|
|
Re: Ptr improve
|
|
|
Re: Ptr improve
By: mirek on Sat, 28 May 2011 20:57
|
|
|
Re: Ptr improve
By: mr_ped on Wed, 25 May 2011 09:34
|
|
|
Re: Ptr improve
|
|
|
Re: Ptr improve
|
|
|
Re: Ptr improve
|
|
|
Re: Ptr improve
By: mirek on Sat, 28 May 2011 21:10
|
Goto Forum:
Current Time: Sun Jun 02 10:34:12 CEST 2024
Total time taken to generate the page: 0.02114 seconds
|