Explorar el Código

test: minor changes

Michele Caini hace 4 años
padre
commit
a8a0c9e571
Se han modificado 2 ficheros con 2 adiciones y 2 borrados
  1. 1 1
      test/entt/entity/group.cpp
  2. 1 1
      test/entt/entity/storage.cpp

+ 1 - 1
test/entt/entity/group.cpp

@@ -15,7 +15,7 @@ struct boxed_int {
     int value;
     int value;
 };
 };
 
 
-bool operator==(const boxed_int &lhs, const boxed_int &rhs) {
+inline bool operator==(const boxed_int &lhs, const boxed_int &rhs) {
     return lhs.value == rhs.value;
     return lhs.value == rhs.value;
 }
 }
 
 

+ 1 - 1
test/entt/entity/storage.cpp

@@ -81,7 +81,7 @@ struct entt::component_traits<std::unordered_set<char>> {
     static constexpr auto page_size = 128u;
     static constexpr auto page_size = 128u;
 };
 };
 
 
-bool operator==(const boxed_int &lhs, const boxed_int &rhs) {
+inline bool operator==(const boxed_int &lhs, const boxed_int &rhs) {
     return lhs.value == rhs.value;
     return lhs.value == rhs.value;
 }
 }