test: use shared non default constructible type

This commit is contained in:
Michele Caini
2023-10-31 09:18:57 +01:00
parent fd970971af
commit 4983d40358

View File

@@ -13,13 +13,10 @@
#include <entt/meta/meta.hpp>
#include <entt/meta/resolve.hpp>
#include "../common/config.h"
#include "../common/non_default_constructible.h"
struct invalid {};
struct non_default_constructible {
non_default_constructible() = delete;
};
TEST(MetaContainer, Invalid) {
ASSERT_FALSE(entt::meta_any{42}.as_sequence_container());
ASSERT_FALSE(entt::meta_any{42}.as_associative_container());
@@ -325,7 +322,7 @@ TEST(SequenceContainer, StdDeque) {
}
TEST(SequenceContainer, NonDefaultConstructible) {
std::vector<non_default_constructible> vec{};
std::vector<test::non_default_constructible> vec{};
auto any = entt::forward_as_meta(vec);
auto view = any.as_sequence_container();