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'm encountering an issue in Sol v3.3.0 relating to the new (to me) ADL Customization Endpoints used in combination with collections and usertypes.
Below is an example with a simple struct vec2 exposed to Lua with the Customization Endpoints. Creating a usertype which exposes two functions, one that accepts a std:vector<> and one that returns a std::vector<> of the custom type. After finding #1531 I was able to make this half of the issue work by defining two additional endpoints for sol::nested<vec2>, but this seems like a bug rather than the intended usage.
The stranger issue is when attempting to expose the custom type via a property declared in the usertype. Attempting to access this field throws the error sol: runtime error: [string \"...\"]:15: attempt to index a sol.glm::vec<2,float,0>* value (field 'field').
I'm assuming all of these issues would disappear if I promoted vec2 to a usertype, but this would be fairly disruptive to the rest of my code. Its especially strange because each of these cases worked in the previous version of Sol I had been using (v2.20.6) with the equivalent template-specialization Customization Endpoints.
I'm encountering an issue in Sol v3.3.0 relating to the new (to me) ADL Customization Endpoints used in combination with collections and usertypes.
Below is an example with a simple struct
vec2
exposed to Lua with the Customization Endpoints. Creating a usertype which exposes two functions, one that accepts astd:vector<>
and one that returns astd::vector<>
of the custom type. After finding #1531 I was able to make this half of the issue work by defining two additional endpoints forsol::nested<vec2>
, but this seems like a bug rather than the intended usage.The stranger issue is when attempting to expose the custom type via a property declared in the usertype. Attempting to access this field throws the error
sol: runtime error: [string \"...\"]:15: attempt to index a sol.glm::vec<2,float,0>* value (field 'field')
.I'm assuming all of these issues would disappear if I promoted
vec2
to a usertype, but this would be fairly disruptive to the rest of my code. Its especially strange because each of these cases worked in the previous version of Sol I had been using (v2.20.6) with the equivalent template-specialization Customization Endpoints.Environment details:
The text was updated successfully, but these errors were encountered: