Have to defer conversion to std string to runtime https://godbolt.org/z/rWKEr4P6h
Although I still think with a mix of template metaprogramming and constexpr might be possible, however it would be a very low ROI on such example.
And it would still be worse than the other languages, so defeat accepted.
I agree that being able to easily tradeoff between time and space is an important property of compile time evaluation and C++ doesn't make that easy with the no escaped allocations requirement.
On the other hand, I shudder to think what will happen to binary size. It can't be any worse than codegenning all the things with reckless abandon... Right?