Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

void* problem when addConstructor and addFunction #317

Open
venjin opened this issue Jul 19, 2023 · 0 comments
Open

void* problem when addConstructor and addFunction #317

venjin opened this issue Jul 19, 2023 · 0 comments

Comments

@venjin
Copy link

venjin commented Jul 19, 2023

when the return type is void*, addFunction will compile fail in push:

template <class T>
struct StackOpSelector<const T*, false>
{
    using ReturnType = TypeResult<T>;

    static Result push(lua_State* L, const T* value) { return Stack<T>::push(L, *value); }

    static ReturnType get(lua_State* L, int index) { return Stack<T>::get(L, index); }

    static bool isInstance(lua_State* L, int index) { return Stack<T>::isInstance(L, index); }
};

What should i do to solve this problem?
I can not modify the return type from void* to another because it is a third library.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant