test: shared listener type

This commit is contained in:
Michele Caini
2024-02-23 14:02:40 +01:00
parent a28ff99b08
commit 84ce6163a7

17
test/common/listener.h Normal file
View File

@@ -0,0 +1,17 @@
#ifndef ENTT_COMMON_LISTENER_H
#define ENTT_COMMON_LISTENER_H
namespace test {
template<typename Type>
struct listener {
void on(Type elem) {
value = elem;
}
int value{};
};
} // namespace test
#endif