|
|
|
|
|
by svalorzen
702 days ago
|
|
I recently actually tried to do a very similar thing, although a bit tighter in scope. What stopped me what that actually deserializing floating points cannot currently be done at compile time; the only utility available to do so is `from_chars` and it is only constexpr for ints. I did not see any mention of this in the post; so are you actually simply extracting the string versions of the numbers, without verifying nor deserializing them? |
|
long double result = 0.0;
while (...) {
}in a constexpr function with no problem :)