If these functions are removed, the C++ compiler generates them - badly.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11896
e03df62e-2008-0410-955e-
edbf42e46eb7
public:
reference() : value(0) { }
reference(T* v) : value(v) { if (value) inc(value); }
- reference<T>& operator=(T* v)
+ reference(const reference& v) : value(v.value) { if (value) inc(value); }
+ reference<T>& operator=(const reference<T>& other)
{
- if (v)
- inc(v);
+ if (other.value)
+ inc(other.value);
this->reference::~reference();
- value = v;
+ value = other.value;
return *this;
}