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

Can kernel be a template? #48

Open
CaoZhongZ opened this issue Nov 1, 2019 · 1 comment
Open

Can kernel be a template? #48

CaoZhongZ opened this issue Nov 1, 2019 · 1 comment

Comments

@CaoZhongZ
Copy link

That's would be interesting.

@jmmartinez
Copy link
Owner

Do you mean a template function ?
Like
template<T> int do_something(T, T);

and specialize it with

easy::jit(do_something<int>, _1, 4);

I haven't tried it but I don't see why that could not be possible.

On the other hand, if you mean that the type T is specialized at runtime. That's not possible.

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

2 participants