-
Notifications
You must be signed in to change notification settings - Fork 23
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
Have Uno::solve() return an optional Result #109
Conversation
This PR does address algorithmic access to the result. I'm happy with that part. My question would be: In the case where uno fails to find its initial point, is there anything that a user can do to figure out why? |
Using a |
Uno is clearly written in C++17. If I try to compile with C++11, I get a buuuunch of errors. Fortunately, we tested the build scripts with
That's a good point. I'll think about a solution, looks like it would rule out |
Maybe a suggestion that doesn't deviate too far from a Consider the following pattern for calling the solve:
I reckon this way, most the work you've done can still be used and the event of a dramatic failure is then dealt with in the |
I'm not sure if it's supported now, but we are on the edge in terms of support if it works. We may have updated to a more recent SDK recently, but I want to warn Charlie not to use very recent features of C++ because of compatibility issues with other libraries. This is why we try to compile artifacts with GCC 4.8 on Yggdrasil — to maximize compatibility. |
Thanks for the suggestion! I think this kind of design is confusing though (returning one value and having to query the other). I decided to:
|
Is C++17 very recent C++ though? 😄 |
cc @worc4021
Fixes #105.