diff options
author | John Reck <jreck@google.com> | 2014-05-09 23:18:19 +0000 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2014-05-09 23:18:19 +0000 |
commit | 1d0fedefbf0ce2f8b61292acf012d0e262fbe704 (patch) | |
tree | 08b1e202afb5b15e736593f27ffbf911f78cbbae /include | |
parent | dee011b42689850c7202dd200d8088d8a33a9ac3 (diff) | |
parent | d83186c444809beaaf181b11c857bc2ab675428e (diff) | |
download | system_core-1d0fedefbf0ce2f8b61292acf012d0e262fbe704.zip system_core-1d0fedefbf0ce2f8b61292acf012d0e262fbe704.tar.gz system_core-1d0fedefbf0ce2f8b61292acf012d0e262fbe704.tar.bz2 |
Merge "Add VirtualLightRefBase"
Diffstat (limited to 'include')
-rw-r--r-- | include/utils/RefBase.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/include/utils/RefBase.h b/include/utils/RefBase.h index cbfe13a..8e15c19 100644 --- a/include/utils/RefBase.h +++ b/include/utils/RefBase.h @@ -203,6 +203,13 @@ private: mutable volatile int32_t mCount; }; +// This is a wrapper around LightRefBase that simply enforces a virtual +// destructor to eliminate the template requirement of LightRefBase +class VirtualLightRefBase : public LightRefBase<VirtualLightRefBase> { +public: + virtual ~VirtualLightRefBase() {} +}; + // --------------------------------------------------------------------------- template <typename T> |