giuspen / cherrytree

cherrytree
https://www.giuspen.net/cherrytree/
Other
3.36k stars 458 forks source link

Fix building with fmt 10. #2274

Closed FtZPetruska closed 1 year ago

FtZPetruska commented 1 year ago

Build is failing with fmt 10 due to changes with how enums are treated.

Specifically, an enum now need to have a format_as function, or be casted to its underlying type:

Removed deprecated implicit conversions for enums and conversions to primitive types for compatibility with std::format and to prevent potential ODR violations. Use format_as instead.
giuspen commented 1 year ago

Thanks!