Unable to compile using C++ 26 (probably C++ 20 or above) #433
Daggersoath
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
The function
loop_parse_if_eight_digitsis marked as constexpr in C++20 and above, however it relies on a call todistancewhich is not marked constexpr which results in a C3615 error.Marking distance as constexpr fixes this issue but would break pre C++20, the define used for
loop_parse_if_eight_digits(FASTFLOAT_CONSTEXPR20) is defined after thedistancefunction so either would need to be moved up or a new define made earlier in the file so that distance could use the same functionality.Apologies if this was not the correct place to post this, I couldn't figure out where these things were supposed to be posted
All reactions