diff options
author | Nat Goodspeed <nat@lindenlab.com> | 2021-11-04 16:40:05 -0400 |
---|---|---|
committer | Nat Goodspeed <nat@lindenlab.com> | 2021-11-04 16:40:05 -0400 |
commit | 8458ad8890cf0a11804996210d7bcfbdaa3eec2e (patch) | |
tree | f4d748b54657f81893e9ccc1d974129cbcca3ff2 /indra/llcommon/llsingleton.h | |
parent | 7a5b92199598be0fc5a2702d071afda06e6ae59f (diff) |
SL-16202: Instantiate LLSimpleton::sInstance generically
instead of requiring a separate declaration for each subclass.
The previous way produces errors in clang.
Diffstat (limited to 'indra/llcommon/llsingleton.h')
-rw-r--r-- | indra/llcommon/llsingleton.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/indra/llcommon/llsingleton.h b/indra/llcommon/llsingleton.h index 10a8ecfedb..24d01812c9 100644 --- a/indra/llcommon/llsingleton.h +++ b/indra/llcommon/llsingleton.h @@ -865,4 +865,7 @@ public: } }; +template <class T> +T* LLSimpleton<T>::sInstance{ nullptr }; + #endif |