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

Use arrays instead of initializer lists for constexpr LinTrans #6

Merged
merged 1 commit into from
Dec 25, 2018

Conversation

sipa
Copy link
Owner

@sipa sipa commented Dec 23, 2018

The existing construction is not strictly C++11 compliant, as std::initializer_list<> doesn't have a constexpr .begin().

Fixes #5.

@theuni
Copy link
Contributor

theuni commented Dec 24, 2018

Works! ACK f6b31e7

@gmaxwell
Copy link
Contributor

ACK. Weird.

@kallewoof
Copy link

Compiles-without-error ACK f6b31e7

@sipa sipa merged commit f6b31e7 into master Dec 25, 2018
sipa added a commit that referenced this pull request Dec 25, 2018
f6b31e7 Use arrays instead of initializer lists for constexpr LinTrans (Pieter Wuille)

Pull request description:

  The existing construction is not strictly C++11 compliant, as `std::initializer_list<>` doesn't have a constexpr `.begin()`.

  Fixes #5.

Tree-SHA512: 793b20ce9d35aa398f535d7dea68e1c5770f6f6c18552a030c0e5987117d289bd22bd4eaa6a114c243c81799c441d8d4be24c09f38191259b0618fff5fbb1036
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.

None yet

4 participants