-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
These have been `constexpr` compatible since C++14. Mechanically, the way I did this was: 1. Find an overload that was not `constexpr`. 2. Make a test that requires it to be `constexpr` to pass (either tweaking an existing test, or making a new one). 3. Make sure the test fails. 4. Change the function until the test passes. The biggest challenge was that our default compiler wouldn't accept our lambda in a `constexpr` context. That feels like a bug, but in any case, we were able to work around it by making a manual function object with an explicitly `constexpr` call operator. Fixes #244.
- Loading branch information
Showing
2 changed files
with
86 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters