Skip to content

Commit 0e2a015

Browse files
committed
Core (LV::Singleton): Initialize the static instance pointers using 'inline'.
1 parent b4091ca commit 0e2a015

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

libvisual/libvisual/lv_singleton.hpp

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -39,14 +39,11 @@ namespace LV {
3939

4040
protected:
4141

42-
static std::unique_ptr<T> m_instance;
42+
inline static std::unique_ptr<T> m_instance {};
4343

4444
Singleton () = default;
4545
};
4646

47-
template <class T>
48-
std::unique_ptr<T> Singleton<T>::m_instance {};
49-
5047
} // LV namespace
5148

5249
#endif // _LV_SINGLETON_HPP

0 commit comments

Comments
 (0)