Skip to content

Support calling custom functions from lambda expressions #59

Open
@kylelutz

Description

@kylelutz

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions