Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > C++ > pros and cons using reference-counter VS reference-link

Reply
Thread Tools

pros and cons using reference-counter VS reference-link

 
 
Axter
Guest
Posts: n/a
 
      01-17-2006
Other than size, is there any other pro to using reference-counter
instead of reference-link logic in a smart pointer.
See following link:
http://www.open-std.org/jtc1/sc22/wg...2004/n1681.pdf

The above link doesn't give too many details as to which is better in
general.

In my test of the following smart pointer, I find it to be much faster
then the boost::shared_ptr for initialization.
http:://code.axter.com/cow_ptr.h

I'm just wondering if there are any other reasons why the
boost::shared_ptr doesn't use reference-link logic instead of
reference-counter.

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
threading and multicores, pros and cons Maric Michaud Python 24 02-20-2007 07:47 PM
What deployment setup are production Rails sites using? and pros/cons vasudevram Ruby 1 08-15-2006 05:55 PM
Pros and cons for using https on a logon page? Randall Parker ASP .Net 1 12-04-2005 09:14 PM
Pros and cons "using namespace" BigMan C++ 6 04-07-2005 05:15 PM
PSL pros and cons Kumar Vijay Mishra VHDL 2 10-02-2004 12:34 AM



Advertisments