DarkSharpness commented on PR #228:
URL: https://github.com/apache/tvm-ffi/pull/228#issuecomment-3523795201

   cc @tqchen . We now support `array`, `vector`, `map`, `unordered_map`, 
`optional`, `tuple`, `variant` and `function` in this PR (I'm still figuring 
out how to support `function`,
   
   For STL containers, when passed from Python to C++, we will always construct 
from the Python object. When passed from C++ to Python, we will construct the 
corresponding object (e.g. `std::array` -> `Array`) first, and then move it to 
`AnyView`.
   
   We also allow types that doesn't enable storage in FFI objects (e.g. 
`std::string`) to appear in STL container (e.g. `std::vector<std::string>`) to 
provide better compatibility.
   
   Finally, do you think I should split the `stl.h` into multiple files? I'm 
not sure whether it is too long and include too many unwanted headers (e.g. 
user may only need to use `vector`).
   


-- 
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