From acae98324b9da7b8ed6de581bb0e9ff8609f2dcb Mon Sep 17 00:00:00 2001 From: Michele Caini Date: Thu, 2 Nov 2023 08:29:37 +0100 Subject: [PATCH] test: shared boxed_int type --- test/entt/common/boxed_int.h | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 test/entt/common/boxed_int.h diff --git a/test/entt/common/boxed_int.h b/test/entt/common/boxed_int.h new file mode 100644 index 000000000..c6190b4fe --- /dev/null +++ b/test/entt/common/boxed_int.h @@ -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