boostorg / locale

Boost.Locale
Boost Software License 1.0
31 stars 70 forks source link

Reimplement `string_set` as `any_string` #212

Closed Flamefire closed 7 months ago

Flamefire commented 7 months ago

Use a better name for a type-erased string implemented using dynamic_cast instead of storing&comparing the typeid of the char type used. This is a workaround for missing typeinfo for char8_t on e.g. libc++ on FreeBSD 13.1. It also simplifies memory management size calc/copy implementation.