diff --git a/test/entt/meta/meta_any.cpp b/test/entt/meta/meta_any.cpp index 988584ad95..6f96e80df4 100644 --- a/test/entt/meta/meta_any.cpp +++ b/test/entt/meta/meta_any.cpp @@ -1,6 +1,7 @@ #include #include #include +#include #include #include #include @@ -70,12 +71,18 @@ enum class enum_class : unsigned short int { }; struct unmanageable_t { - unmanageable_t() = default; + unmanageable_t() + : value{std::make_unique(42)} {} + ~unmanageable_t() = default; + unmanageable_t(const unmanageable_t &) = delete; unmanageable_t(unmanageable_t &&) = delete; + unmanageable_t &operator=(const unmanageable_t &) = delete; unmanageable_t &operator=(unmanageable_t &&) = delete; + + std::unique_ptr value; }; struct MetaAny: ::testing::Test { @@ -1303,7 +1310,7 @@ TEST_F(MetaAny, EnumConversion) { } TEST_F(MetaAny, UnmanageableType) { - unmanageable_t instance; + unmanageable_t instance{}; auto any = entt::forward_as_meta(instance); entt::meta_any other = any.as_ref();