diff --git a/test/entt/entity/registry.cpp b/test/entt/entity/registry.cpp index 9381ff144..d5e706d0d 100644 --- a/test/entt/entity/registry.cpp +++ b/test/entt/entity/registry.cpp @@ -11,6 +11,7 @@ #include #include #include "../common/config.h" +#include "../common/non_default_constructible.h" #include "../common/pointer_stable.h" struct empty_type {}; @@ -23,13 +24,6 @@ bool operator==(const no_eto_type &lhs, const no_eto_type &rhs) { return &lhs == &rhs; } -struct non_default_constructible { - non_default_constructible(int v) - : value{v} {} - - int value; -}; - struct aggregate { int value{}; }; @@ -1946,7 +1940,7 @@ TEST(Registry, MoveOnlyComponent) { TEST(Registry, NonDefaultConstructibleComponent) { entt::registry registry; // the purpose is to ensure that non default constructible type are always accepted - registry.emplace(registry.create(), 42); + registry.emplace(registry.create(), 42); } TEST(Registry, Dependencies) {