pros and cons using reference-counter VS reference-link

Discussion in 'C++' started by Axter, Jan 17, 2006.

  1. Axter

    Axter Guest

    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/wg21/docs/papers/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.
     
    Axter, Jan 17, 2006
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Kumar Vijay Mishra

    PSL pros and cons

    Kumar Vijay Mishra, Sep 29, 2004, in forum: VHDL
    Replies:
    2
    Views:
    2,599
    vhdlcohen
    Oct 2, 2004
  2. Randall Parker

    Pros and cons for using https on a logon page?

    Randall Parker, Dec 4, 2005, in forum: ASP .Net
    Replies:
    2
    Views:
    763
    nimd4
    May 17, 2014
  3. BigMan
    Replies:
    6
    Views:
    3,415
  4. Maric Michaud

    threading and multicores, pros and cons

    Maric Michaud, Feb 14, 2007, in forum: Python
    Replies:
    24
    Views:
    1,161
    Paul Boddie
    Feb 20, 2007
  5. vasudevram
    Replies:
    1
    Views:
    127
    A. S. Bradbury
    Aug 15, 2006
Loading...

Share This Page