bug-commoncpp
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Pointer class


From: Daniel E Baumann
Subject: Re: Pointer class
Date: Fri, 14 Dec 2001 16:33:48 -0600
User-agent: Mutt/1.3.24i

On Fri, Dec 14, 2001 at 11:14:53AM +0100, Federico Montesino Pouzols wrote:
> On Thu, Dec 13, 2001 at 06:18:15PM -0600, Daniel E Baumann wrote:
> > I was looking at the code some more for this template, but I am not so
> > sure I like the interface. Wouldn't it be best if it add AddRef() and
> > Release() methods or Ref() and UnRef()? 
> 
>       If I understand you well, you mean two methods to increase and
> decrease the reference counter. In that case you already have the two
> operators ++ and --.

Yes which is all and good, but it should have methods to be more
complete. I mean the Mutex class also has the operators and
methods. It is just a matter of taste really, but I think methods
would also be nice. 

Dan
-- 
Daniel E Baumann      address@hidden 

***Free Dmitry Sklyarov! Boycott Adobe! Repeal DMCA!***

And if cynics ridicule freedom, ridicule community...if ``hard nosed 
realists'' say that profit is the only ideal...just ignore them, and use 
copyleft all the same.
      -- RMS



reply via email to

[Prev in Thread] Current Thread [Next in Thread]