From 926404693f4242fe63c4465737c9146dfefedc2f Mon Sep 17 00:00:00 2001 From: Maru Date: Wed, 7 Mar 2018 07:49:20 -0300 Subject: [PATCH] Const correct --- src/common/Util/SpawnIndexAllocator.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/common/Util/SpawnIndexAllocator.h b/src/common/Util/SpawnIndexAllocator.h index 732f652c..d6af5a40 100644 --- a/src/common/Util/SpawnIndexAllocator.h +++ b/src/common/Util/SpawnIndexAllocator.h @@ -72,7 +72,7 @@ namespace Util return spawnIndex != getAllocFailId(); } - constexpr T getAllocFailId() + constexpr T getAllocFailId() const { return static_cast< T >( -1 ); }