boostorg / locale

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

Make ICU implementation of to_title threadsafe #226

Closed Flamefire closed 5 months ago

Flamefire commented 5 months ago

ucasemap_utf8ToTitle uses a non-const casemap hence reusing the existing one isn't threadsafe. Add constraints to raii_casemap::convert on the constness of Func and create a temporary casemap.

Fixes #225