Skip to content

Invalid code in user<T>::push #1703

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

Open
GitSparTV opened this issue May 31, 2025 · 0 comments
Open

Invalid code in user<T>::push #1703

GitSparTV opened this issue May 31, 2025 · 0 comments

Comments

@GitSparTV
Copy link

if constexpr (std::is_same_v<meta::unqualified_t<Arg>, metatable_key_t>) {
const auto name = &arg[0];
return push_with<true>(L, name, std::forward<Args>(args)...);
}

This code will not compile because metatable_key_t doesn't have subscript method.

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