Răsfoiți Sursa

test: minor changes

Michele Caini 3 ani în urmă
părinte
comite
a8a0c9e571
2 a modificat fișierele cu 2 adăugiri și 2 ștergeri
  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;
 }