Explorar o código

test: minor changes

Michele Caini %!s(int64=3) %!d(string=hai) anos
pai
achega
a8a0c9e571
Modificáronse 2 ficheiros con 2 adicións e 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;
 };
 
-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;
 }
 

+ 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;
 };
 
-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;
 }