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

transform_pair not working with std::function #88

Closed
Dobiasd opened this issue Sep 4, 2017 · 2 comments · Fixed by #89
Closed

transform_pair not working with std::function #88

Dobiasd opened this issue Sep 4, 2017 · 2 comments · Fixed by #89

Comments

@Dobiasd
Copy link
Owner

Dobiasd commented Sep 4, 2017

The following code does not compile any more. I guess it has something to do with PR #87.

const std::function<int(int)> double_int = [](int x) -> int
{
    return 2 * x;
};
typedef std::pair<int, int> IntPair;
fplus::transform_pair(double_int, double_int, IntPair({2,3}));

@theodelrieu, could you please have a look at it?

@theodelrieu
Copy link
Collaborator

This is related to void_t. I used the cppreference one (supposedly compatible with C++14, but GCC7 seems unhappy with it)

@Dobiasd
Copy link
Owner Author

Dobiasd commented Sep 4, 2017

Thanks a lot for this very quick fix.

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

Successfully merging a pull request may close this issue.

2 participants