Michele Caini 3 лет назад
Родитель
Сommit
a8a0c9e571
2 измененных файлов с 2 добавлено и 2 удалено
  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;
 }