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

Support calling custom functions from lambda expressions #59

Open
kylelutz opened this issue Mar 10, 2014 · 1 comment
Open

Support calling custom functions from lambda expressions #59

kylelutz opened this issue Mar 10, 2014 · 1 comment

Comments

@kylelutz
Copy link
Collaborator

kylelutz commented Mar 10, 2014

It should be possible to call custom functions from lambda expressions.

For example, this should be possible:

BOOST_COMPUTE_FUNCTION(float, square, (float x),
{
    return x * x;
});

transform(vec.begin(), vec.end(), vec.begin(), square(2 * _1), queue);

@kylelutz
Copy link
Collaborator Author

This has been requested multiple times during the Boost.Compute review. Bumping it up in priority.

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

No branches or pull requests

1 participant