boostorg / boostorg/compute

Support calling custom functions from lambda expressions

Open
#59 1 comment 0 reactions 0 assignees View on GitHub
feature task
Dominant language
C++
Stars
1.7k
Forks
340
PR merge metrics
No merged PRs in 30d

Description

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);
```
##

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.