Refactored padding handling in formatter using templates

This commit is contained in:
gabime
2019-07-15 01:17:22 +03:00
parent 54456aee9e
commit 4b0267910c
2 changed files with 11 additions and 17 deletions

View File

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