rewrite uvalue traits

This commit is contained in:
BlackMATov
2023-12-30 12:32:22 +07:00
parent e25af84b3f
commit 50d6ab4974
8 changed files with 21 additions and 158 deletions

View File

@@ -34,7 +34,7 @@ TEST_CASE("meta/meta_issues/random/3") {
{
meta::uvalue v{&int_func};
CHECK_FALSE(v.has_deref_op());
CHECK(v.has_deref_op());
CHECK(v.get_type() == meta::resolve_type<int(*)()>());
CHECK((v.as<decltype(&int_func)>() == &int_func));
}