fmtlib / fmt

A modern formatting library
https://fmt.dev
Other
20.56k stars 2.46k forks source link

Specialize `formatter` for all `std::basic_string` types #3943

Closed dieram3 closed 5 months ago

dieram3 commented 5 months ago

This fixes #3938 by adding a formatter partial specialization that covers all std::basic_string types, such as std::pmr::string.

Additionally, this adds the old-school allocator member types to mock_allocator in order to make GCC 4.8 happy. If GCC 4.8 support is removed in the future, these member types can be removed as they are the defaults of allocator_traits.