C++26, with CTR and more functions being constexpr, takes it a step further. Now that std::log is constexpr, a fully-featured dtoa algorithm, with generated digit tables and such, can support any encoding, be configurable to a number of digits, and be evaluated at compile time. Why you would want to convert a floating-point number to text at compile time is another question entirely, but uh…it’s possible now! Also, compile-time polymorphism without CRTIP, and arbitrary-size tuple-likes that can be template parameters…it’s pretty fun
View all comments
Show parent comment
2
u/TREE_sequence Sep 27 '26
C++26, with CTR and more functions being constexpr, takes it a step further. Now that std::log is constexpr, a fully-featured dtoa algorithm, with generated digit tables and such, can support any encoding, be configurable to a number of digits, and be evaluated at compile time. Why you would want to convert a floating-point number to text at compile time is another question entirely, but uh…it’s possible now! Also, compile-time polymorphism without CRTIP, and arbitrary-size tuple-likes that can be template parameters…it’s pretty fun