mirror of
https://github.com/fmtlib/fmt.git
synced 2024-11-10 05:10:05 +00:00
Cleanup public API
This commit is contained in:
parent
c71d03fcb0
commit
f8c0c8ee78
@ -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);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user