Hi all,
I have a class with a static variable: null.
static Pointer<Value> Null;
Pointer is a class which uses reference count memory management.
However, I get an error: no matching function for call to Pointer::Pointer()
On the line:
Pointer<Value> Value::Null(new Value());
Thanks.
Excerpt of Pointer class:
template <typename T>
class Pointer
{
public:
explicit Pointer(T* inPtr);
Constructor Source
mPtr = inPtr;
if (sRefCountMap.find(mPtr) == sRefCountMap.end()) {
sRefCountMap[mPtr] = 1;
} else {
sRefCountMap[mPtr]++;
}