From: Stephen Seo Date: Tue, 7 Sep 2021 11:24:47 +0000 (+0900) Subject: Make ThreadPool::getThreadCount() constexpr X-Git-Tag: 1.0~26 X-Git-Url: https://git.seodisparate.com/stephenseo/static/search/searchdata.js?a=commitdiff_plain;h=222fbb08626060cfb39e57bec76c1aa0af7aee0c;p=EntityComponentMetaSystem Make ThreadPool::getThreadCount() constexpr --- diff --git a/src/EC/ThreadPool.hpp b/src/EC/ThreadPool.hpp index d3808ec..3b68c6b 100644 --- a/src/EC/ThreadPool.hpp +++ b/src/EC/ThreadPool.hpp @@ -175,7 +175,7 @@ public: /*! \brief Returns the ThreadCount that this class was created with. */ - unsigned int getThreadCount() { + constexpr unsigned int getThreadCount() { return SIZE; }