|
|
@@ -134,17 +134,19 @@ TEST_F(MetaAny, Empty) {
|
|
|
TEST_F(MetaAny, EmptyAsRef) {
|
|
|
entt::meta_any any{};
|
|
|
|
|
|
- ASSERT_FALSE(any);
|
|
|
- ASSERT_FALSE(any.type());
|
|
|
- ASSERT_EQ(any.base().data(), nullptr);
|
|
|
- ASSERT_EQ(any, entt::meta_any{});
|
|
|
-
|
|
|
auto other = any.as_ref();
|
|
|
|
|
|
ASSERT_FALSE(other);
|
|
|
ASSERT_FALSE(other.type());
|
|
|
ASSERT_EQ(other.base().data(), nullptr);
|
|
|
ASSERT_EQ(other, entt::meta_any{});
|
|
|
+
|
|
|
+ other = std::as_const(any).as_ref();
|
|
|
+
|
|
|
+ ASSERT_FALSE(other);
|
|
|
+ ASSERT_FALSE(other.type());
|
|
|
+ ASSERT_EQ(other.base().data(), nullptr);
|
|
|
+ ASSERT_EQ(other, entt::meta_any{});
|
|
|
}
|
|
|
|
|
|
TEST_F(MetaAny, Context) {
|