]> git.seodisparate.com - EntityComponentMetaSystem/commitdiff
Make ThreadPool::getThreadCount() constexpr
authorStephen Seo <seo.disparate@gmail.com>
Tue, 7 Sep 2021 11:24:47 +0000 (20:24 +0900)
committerStephen Seo <seo.disparate@gmail.com>
Tue, 7 Sep 2021 11:24:47 +0000 (20:24 +0900)
src/EC/ThreadPool.hpp

index d3808ecb382a05f1ea22e70f5550369893b31cfe..3b68c6b28e7d09832862f4ef38a328450f9d0c48 100644 (file)
@@ -175,7 +175,7 @@ public:
     /*!
         \brief Returns the ThreadCount that this class was created with.
      */
-    unsigned int getThreadCount() {
+    constexpr unsigned int getThreadCount() {
         return SIZE;
     }