Cleanup public API

This commit is contained in:
Victor Zverovich 2024-08-10 12:26:25 -07:00
parent c71d03fcb0
commit f8c0c8ee78

View File

@ -2188,12 +2188,12 @@ struct format_specs {
alt(false), alt(false),
localized(false) {} localized(false) {}
enum { dynamic_width_mask = 3, dynamic_precision_mask = 12 }; FMT_CONSTEXPR auto dynamic_width() const -> detail::arg_id_kind {
enum { dynamic_width_mask = 3 };
constexpr auto dynamic_width() const -> detail::arg_id_kind {
return static_cast<detail::arg_id_kind>(dynamic & dynamic_width_mask); return static_cast<detail::arg_id_kind>(dynamic & dynamic_width_mask);
} }
constexpr auto dynamic_precision() const -> detail::arg_id_kind { FMT_CONSTEXPR auto dynamic_precision() const -> detail::arg_id_kind {
enum { dynamic_precision_mask = 12 };
return static_cast<detail::arg_id_kind>( return static_cast<detail::arg_id_kind>(
(dynamic & dynamic_precision_mask) >> 2); (dynamic & dynamic_precision_mask) >> 2);
} }