Refactored padding handling in formatter using templates

This commit is contained in:
gabime
2019-07-15 01:16:57 +03:00
parent 2a31cdcded
commit 54456aee9e
2 changed files with 170 additions and 187 deletions

View File

@@ -82,6 +82,7 @@ private:
std::vector<std::unique_ptr<details::flag_formatter>> formatters_;
std::tm get_time_(const details::log_msg &msg);
template <typename Padder>
void handle_flag_(char flag, details::padding_info padding);
// Extract given pad spec (e.g. %8X)