From eba98e4e1adcf3ce11e5934e2dce54f29aef1e0a Mon Sep 17 00:00:00 2001 From: Benoit Germain Date: Thu, 24 Oct 2024 11:30:18 +0200 Subject: Make Unique even stronger --- src/keeper.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/keeper.h') diff --git a/src/keeper.h b/src/keeper.h index 74bdbf2..7e3e1fa 100644 --- a/src/keeper.h +++ b/src/keeper.h @@ -16,7 +16,7 @@ DECLARE_UNIQUE_TYPE(KeeperIndex, int); struct Keeper { std::mutex mutex; - KeeperState K{ nullptr }; + KeeperState K{ static_cast(nullptr) }; [[nodiscard]] static void* operator new[](size_t size_, Universe* U_) noexcept; // can't actually delete the operator because the compiler generates stack unwinding code that could call it in case of exception -- cgit v1.2.3-55-g6feb