From c51c6da61b97acf33948ffbb2d3b77fcf4dc6a90 Mon Sep 17 00:00:00 2001 From: Michele Caini Date: Fri, 31 May 2024 11:32:23 +0200 Subject: [PATCH] locator: make it clear to the linter that we want services to be global --- src/entt/locator/locator.hpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/entt/locator/locator.hpp b/src/entt/locator/locator.hpp index 671ac5fd8..dd80b5bd1 100644 --- a/src/entt/locator/locator.hpp +++ b/src/entt/locator/locator.hpp @@ -149,6 +149,7 @@ public: private: // std::shared_ptr because of its type erased allocator which is useful here + // NOLINTNEXTLINE(cppcoreguidelines-avoid-non-const-global-variables) inline static std::shared_ptr service{}; };