瀏覽代碼

minor changes

Michele Caini 8 年之前
父節點
當前提交
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 {
     const_iterator_type begin() const noexcept {
-        return direct.begin();
+        return direct.cbegin();
     }
     }
 
 
     iterator_type end() noexcept {
     iterator_type end() noexcept {
@@ -68,7 +68,7 @@ public:
     }
     }
 
 
     const_iterator_type end() const noexcept {
     const_iterator_type end() const noexcept {
-        return direct.end();
+        return direct.cend();
     }
     }
 
 
     bool has(entity_type entity) const noexcept {
     bool has(entity_type entity) const noexcept {

+ 0 - 1
test/benchmark.cpp

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