-
Notifications
You must be signed in to change notification settings - Fork 230
Fix for Scipy Issue 16079 #925
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
Conversation
[ci skip] [CI SKIP]
Note that this would be a breaking change, since we promised a constexpr prime :( |
Break change as it is now not constexpr
It is. I am not sure I am ready to revisit #400, but I think the sieve of eratosthenes could be made constexpr in C++14. |
With the inclusion of the structs I get:
Using C++14 but we also pass the constexpr include test |
Nice bit of lateral thinking there, good fix! Looks like the dummy classes need to be artificially made templates to avoid ODR violations, then this should be good to go. Also if you do a quick search for uses of |
@jzmaddock Am I missing something moving to templates? I specialized using an Edit: Looks like MSVC 14.0 is not standards conformant since |
In this most recent run I disabled |
@mborland : This a very old C+03 trick for dumping static data into headers, but you need to be using something like:
Then reference the data as |
@jzmaddock This yields similar linker errors:
I can roll this back to everything being |
Let me investigate locally. |
@jzmaddock were you able to find anything? |
Yes, I just need to do all the editing, and I'm about to pop out for the night, but hopefully I'll have a fix shortly. |
Closed via alternate fix in develop. |
Sharing between platforms