Thread: RCPtr ?= shared_ptr

  1. #1
    Registered User
    Join Date
    May 2008

    RCPtr ?= shared_ptr

    Hi everyone,

    I am to modify some third-party library code, and I've found the class "RCPtr".

    This seems to me a Reference Count Smart Pointer, said to be in Boost. However, I haven't found this in the Boost library.
    However, the shared_ptr is a reference count smart pointer as well?

    Has anyone seen this template before? Is it deprecated, or in another library which I don't know? Or is it just a general name? (i have found many rcPtr templates on the net).

    Thanks for your answer!


  2. #2
    C++ Witch laserlight's Avatar
    Join Date
    Oct 2003
    shared_ptr is not the only reference counted smart pointer around. If the documentation says nothing about it, search the headers included until you find such a class defined.
    Quote Originally Posted by Bjarne Stroustrup (2000-10-14)
    I get maybe two dozen requests for help with some sort of programming or design problem every day. Most have more sense than to send me hundreds of lines of code. If they do, I ask them to find the smallest example that exhibits the problem and send me that. Mostly, they then find the error themselves. "Finding the smallest program that demonstrates the error" is a powerful debugging tool.
    Look up a C++ Reference and learn How To Ask Questions The Smart Way

Popular pages Recent additions subscribe to a feed