Your Handle’s copy c-tor is invalid. It should be like this:
Handle(const Handle<T>& other)
: baseItem(other.baseItem),
refCount(other.refCount)
{
++*refCount;
}
solved The handle class in C++ [closed]
Your Handle’s copy c-tor is invalid. It should be like this:
Handle(const Handle<T>& other)
: baseItem(other.baseItem),
refCount(other.refCount)
{
++*refCount;
}
solved The handle class in C++ [closed]