realnc / SDL_audiolib

An audio decoding, resampling and mixing library for SDL.
GNU Lesser General Public License v3.0
43 stars 8 forks source link

Use std::format and std::print where available #38

Closed glebm closed 2 years ago

glebm commented 2 years ago

std::print is still a proposal but this simple use of it is unlikely to change by implementation stage.

realnc commented 2 years ago

Sorry you did all that work, but I don't want to wrap this stuff. Just use fmt. The whole point of using it was that I don't have to care if C++20 is available or not.

glebm commented 2 years ago

Yeah makes sense, I just wanted to see how hard this would be. fmt and std stuff are still quite different, e.g. there is not std::make_format_args_checked at all and no equivalent to fmt::runtime.