Skip to content

Commit 8f818b3

Browse files
committed
Refactor handling of width and precision formatting options
These formatting options may be either a size specified in the format string itself or a nested replacement field whose value determines the size at runtime. Rather than tracking each potential option as its own std::optional<std::size_t>, introduce a small structure to encapsulate the option's value and type (a static size or format parameter). Further, only string and floating point values are affected by the precision option. Defer handling precision to the type-specific overloads of BasicStringFormatter::format_value_for_type.
1 parent b90a138 commit 8f818b3

File tree

3 files changed

+349
-132
lines changed

3 files changed

+349
-132
lines changed

0 commit comments

Comments
 (0)