Closed
Description
I got following error when using sol::light
/.../sol2/include/sol/stack_push.hpp:655:29: error: invalid ‘static_cast’ from type ‘<unresolved overloaded function type>’ to type ‘void*’
655 | lua_pushlightuserdata(L, static_cast<void*>(l.value));
|
After diving the source code, I found inconsistency on unqualified_pusher<light<T>>
. The unqualified_pusher<light<T>>
is using light<T>.value
as a pointer, but in light<T>
's definition, light<T>.valule
is a function returning a pointer.
sol2/include/sol/stack_push.hpp
Lines 649 to 658 in 6409634
Lines 236 to 238 in 6409634
Metadata
Metadata
Assignees
Labels
No labels