Michele Caini 8 лет назад
Родитель
Сommit
a1aa23ba2b
2 измененных файлов с 2 добавлено и 3 удалено
  1. 2 2
      src/component_pool.hpp
  2. 0 1
      test/benchmark.cpp

+ 2 - 2
src/component_pool.hpp

@@ -60,7 +60,7 @@ public:
     }
 
     const_iterator_type begin() const noexcept {
-        return direct.begin();
+        return direct.cbegin();
     }
 
     iterator_type end() noexcept {
@@ -68,7 +68,7 @@ public:
     }
 
     const_iterator_type end() const noexcept {
-        return direct.end();
+        return direct.cend();
     }
 
     bool has(entity_type entity) const noexcept {

+ 0 - 1
test/benchmark.cpp

@@ -1,6 +1,5 @@
 #include <gtest/gtest.h>
 #include <registry.hpp>
-#include <functional>
 #include <iostream>
 #include <cstddef>
 #include <chrono>