Got the following code for the pointer reference counting in C++, but the
answer is not as expected. Looks I am doing something wrong. Please help.
#include
using namespace std;
template class RefCountPtr {
public:
explicit RefCountPtr(T* p = NULL) {
sending again
On Thu, Mar 14, 2013 at 5:36 PM, Kevin Peterson wrote:
> Got the following code for the pointer reference counting in C++, but the
> answer is not as expected. Looks I am doing something wrong. Please help.
>
> #include **
>
> using namespace std;
>
> template **class RefCountPtr