boostorg / core

Boost Core Utilities
133 stars 83 forks source link

Remove the use of snprintf for trivial formatting in lightweight_test #133

Closed Lastique closed 1 year ago

Lastique commented 1 year ago

This implements in-place formatting for small hex numbers instead of using snprintf with the associated portability scaffolding. This also removes the need for #include <cstdio>.

(I was going to use boost/core/snprintf.hpp initially, but figured it would be better to remove snprintf altogether.)