ソースを参照

locator: make it clear to the linter that we want services to be global

Michele Caini 1 年間 前
コミット
c51c6da61b
1 ファイル変更1 行追加0 行削除
  1. 1 0
      src/entt/locator/locator.hpp

+ 1 - 0
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> service{};
 };