guan404ming commented on code in PR #393:
URL: https://github.com/apache/tvm-ffi/pull/393#discussion_r2678430580


##########
tests/cpp/test_reflection.cc:
##########
@@ -294,4 +294,31 @@ TEST(Reflection, AccessPath) {
   auto root_parent = root->GetParent();
   EXPECT_FALSE(root_parent.has_value());
 }
+
+struct TestObjWithAny : public Object {
+  Any value;
+  explicit TestObjWithAny(Any value) : value(std::move(value)) {}

Review Comment:
   The code fails to compile with the same missing `TypeStr` error when using 
`refl::init<AnyView>()` so I also add `Type2Str<AnyView&&>` specialization and 
related tests.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to