File tree Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Original file line number Diff line number Diff line change 11#include < algorithm>
22#include < cstddef>
33#include < iterator>
4+ #include < memory>
45#include < utility>
56#include < gtest/gtest.h>
67#include < entt/core/hashed_string.hpp>
@@ -70,12 +71,18 @@ enum class enum_class : unsigned short int {
7071};
7172
7273struct unmanageable_t {
73- unmanageable_t () = default ;
74+ unmanageable_t ()
75+ : value{std::make_unique<int >(42 )} {}
76+
7477 ~unmanageable_t () = default ;
78+
7579 unmanageable_t (const unmanageable_t &) = delete ;
7680 unmanageable_t (unmanageable_t &&) = delete ;
81+
7782 unmanageable_t &operator =(const unmanageable_t &) = delete ;
7883 unmanageable_t &operator =(unmanageable_t &&) = delete ;
84+
85+ std::unique_ptr<int > value;
7986};
8087
8188struct MetaAny : ::testing::Test {
@@ -1303,7 +1310,7 @@ TEST_F(MetaAny, EnumConversion) {
13031310}
13041311
13051312TEST_F (MetaAny, UnmanageableType) {
1306- unmanageable_t instance;
1313+ unmanageable_t instance{} ;
13071314 auto any = entt::forward_as_meta (instance);
13081315 entt::meta_any other = any.as_ref ();
13091316
You can’t perform that action at this time.
0 commit comments