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

Does this work on m1/m2 mac #34

Open
rootux opened this issue Jun 29, 2023 · 2 comments
Open

Does this work on m1/m2 mac #34

rootux opened this issue Jun 29, 2023 · 2 comments

Comments

@rootux
Copy link

rootux commented Jun 29, 2023

Anyone tried running this on an m1?

@artificiel
Copy link

yes, using nightly, but there is a reference to std::bind2nd which has been removed from C++ — I don't see a quick fix so I just commented out the line not sure what function it had. also some return types have to be fixed to void on a couple of setters as the compiler disallows non-returns. there 2 things should be reported as issues.

image

@stephanschulz
Copy link

try replacing std::transform(_v.begin(), _v.end(), diff.begin(), std::bind2nd(std::minus<float>(), mean));

with std::transform(_v.begin(), _v.end(), diff.begin(),[mean](float x) { return x - mean; });

for me this prevents the compile error. but I am not sure how to test if it still performs the same task.

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

3 participants