We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b4091ca commit 0e2a015Copy full SHA for 0e2a015
1 file changed
libvisual/libvisual/lv_singleton.hpp
@@ -39,14 +39,11 @@ namespace LV {
39
40
protected:
41
42
- static std::unique_ptr<T> m_instance;
+ inline static std::unique_ptr<T> m_instance {};
43
44
Singleton () = default;
45
};
46
47
- template <class T>
48
- std::unique_ptr<T> Singleton<T>::m_instance {};
49
-
50
} // LV namespace
51
52
#endif // _LV_SINGLETON_HPP
0 commit comments