From 503d365869da4828b7e7d7c39779db33808f98f1 Mon Sep 17 00:00:00 2001 From: Paul Ferrand Date: Mon, 23 Sep 2019 10:23:24 +0200 Subject: [PATCH] Added back the `inline static` for cpp >= 17 --- sfizz/LeakDetector.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sfizz/LeakDetector.h b/sfizz/LeakDetector.h index 21f737d3..659d9033 100644 --- a/sfizz/LeakDetector.h +++ b/sfizz/LeakDetector.h @@ -60,7 +60,7 @@ private: }; std::atomic count { 0 }; }; - static ObjectCounter objectCounter; + inline static ObjectCounter objectCounter; }; #ifndef NDEBUG @@ -74,4 +74,4 @@ private: #else #define LEAK_DETECTOR(Class) -#endif \ No newline at end of file +#endif