summaryrefslogtreecommitdiff
path: root/indra/llcommon/llsingleton.h
diff options
context:
space:
mode:
authorNat Goodspeed <nat@lindenlab.com>2021-11-04 16:40:05 -0400
committerNat Goodspeed <nat@lindenlab.com>2021-11-04 16:40:05 -0400
commit8458ad8890cf0a11804996210d7bcfbdaa3eec2e (patch)
treef4d748b54657f81893e9ccc1d974129cbcca3ff2 /indra/llcommon/llsingleton.h
parent7a5b92199598be0fc5a2702d071afda06e6ae59f (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.h3
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