test: shared boxed_int type
This commit is contained in:
16
test/entt/common/boxed_int.h
Normal file
16
test/entt/common/boxed_int.h
Normal file
@@ -0,0 +1,16 @@
|
||||
#ifndef ENTT_COMMON_BOXED_INT_HPP
|
||||
#define ENTT_COMMON_BOXED_INT_HPP
|
||||
|
||||
namespace test {
|
||||
|
||||
struct boxed_int {
|
||||
int value{};
|
||||
};
|
||||
|
||||
inline bool operator==(const boxed_int &lhs, const boxed_int &rhs) {
|
||||
return lhs.value == rhs.value;
|
||||
}
|
||||
|
||||
} // namespace test
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user