pros and cons using reference-counter VS reference-link

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Axter

    #1

    pros and cons using reference-counter VS reference-link

    Other than size, is there any other pro to using reference-counter
    instead of reference-link logic in a smart pointer.
    See following link:


    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_p tr for initialization.
    http:://code.axter.com/cow_ptr.h

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

Working...