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

Don't use auto in lambda functions #3

Merged
merged 1 commit into from
Jul 5, 2018
Merged

Don't use auto in lambda functions #3

merged 1 commit into from
Jul 5, 2018

Conversation

hrkfdn
Copy link
Contributor

@hrkfdn hrkfdn commented Jul 5, 2018

It seems that using auto in lambda functions is supported as of C++14, but not C++1y, which is used here.

This is also unsupported in gcc-4.8. While this is uglier to read it fixes compilation for older gcc versions that support c++1y, but not c++14.

An example platform that is affected is Amazon Linux 1, which is used in
AWS Lambda functions. Therefore, this fix allows pysupercluster to be
compiled and used in AWS Lambda functions.

this is unsupported in gcc-4.8. while this is uglier to read it fixes
compilation for older gcc versions that support c++1y, but not c++14.

an example platform that is affected is amazon linux 1, which is used in
aws lambda functions. therefore, this fix allows pysupercluster to be
compiled and used in aws lambda functions.
@jlaine
Copy link
Contributor

jlaine commented Jul 5, 2018

Looks good to me, and tests pass so let's go

@jlaine jlaine merged commit 770f118 into wemap:master Jul 5, 2018
@hrkfdn
Copy link
Contributor Author

hrkfdn commented Jul 6, 2018

@jlaine Thanks for the quick merge!

Will you publish a release anytime soon? The reason I'm asking is that pip seems to have problems installing from requirements.txt from git sources, which I have to use to specifically install the master branch of this library. See also: pypa/pip#4390 pypa/pip#1833 (specifically the second issue described)

@jlaine
Copy link
Contributor

jlaine commented Jul 6, 2018

Sure will do early next week. I'm thinking binary wheels built by CI would be nice too.

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 this pull request may close these issues.

2 participants