void delEventProxy(const EventProxiesIt it);
- protected:
- // This section MUST be protected!
+ public:
+ // This section MUST be public!
// Signal to RefCountObj<T, C> to call onUniqueChanged()
- enum { ENABLE_ON_UNIQUE_CHANGED_DISPATCH };
+ enum { _ENABLE_ON_UNIQUE_CHANGED_DISPATCH };
+
+ protected:
+ // This section MAY be protected
void onUniqueChanged(bool isUnique);
private:
RefCountAware(IRefCountObj *rc);
virtual ~RefCountAware() = default;
- protected:
- enum { IS_REF_COUNT_AWARE };
+ public:
+ // This section MUST be public!
+ // Signal to RefCountObj<T, C> to pass IRefCountObj to constructor
+ enum { _IS_REF_COUNT_AWARE };
protected:
IRefCountObj *const m_rc;
template <class T2, class = char[1]>
struct IsRefCountAware : std::false_type {};
template <class T2>
- struct IsRefCountAware<T2, char[T2::IS_REF_COUNT_AWARE * 0 + 1]> :
+ struct IsRefCountAware<T2, char[T2::_IS_REF_COUNT_AWARE * 0 + 1]> :
std::true_type {};
template <class T2, class = char[1]>
struct IsOnUniqueAware : std::false_type {};
template <class T2>
struct IsOnUniqueAware<T2,
- char[T2::ENABLE_ON_UNIQUE_CHANGED_DISPATCH * 0 + 1]> :
+ char[T2::_ENABLE_ON_UNIQUE_CHANGED_DISPATCH * 0 + 1]> :
std::true_type {};
private: