FEX-Emu / FEX

A fast usermode x86 and x86-64 emulator for Arm64 Linux
https://fex-emu.com
MIT License
2.01k stars 104 forks source link

Begin migrating from fmt to c++20 format #3677

Open Sonicadvance1 opened 1 month ago

Sonicadvance1 commented 1 month ago

libstdc++ and libc++ on all of our supported distros is now new enough to support .

This should be mostly straightforward to implement, the only weird one will be fextl::fmt::vformat since it uses the fmt::basic_memory_buffer for custom allocator support. There's no direct 1:1 replacement in the C++ standard so will need some massaging.

This will remove one more external project dependency in a relatively straight forward way. Low-prio but shouldn't be terrible to do.

Sonicadvance1 commented 3 weeks ago

Looks like this would require upgrading to at least libstdc++ 13.1, which Ubuntu 22.04 doesn't ship. Once we drop 22.04 it should be safe but until then it is likely too new still.