You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am trying to use CXX. How do I declare a C++ static method under the cxxbridge extern "C"? More specifically, how can I specify the name of the class that static method is defined on? Would cxx_name take "Class::StaticMethod"?
The text was updated successfully, but these errors were encountered:
This is not implemented yet but it just came up recently in #447 too. I do not like #[cxx_name = "Class::StaticMethod"] because the common case would be that you want either both sides to be methods or neither side to be a method; cxx_name makes it seem like you're dealing with a method on the C++ side and a free function on the Rust side.
Question from @nixbox:
The text was updated successfully, but these errors were encountered: