template<typename T> AutoState<T>::AutoState(const AutoState<T> &source) { state = source.GetPtr(); ((T*)state)->AddRef(); }
AutoState<T>::AutoState(const AutoState<T>& source) { state = source.GetPtr(); ((T*)state)->AddRef(); }