From 758446c80d64cd03fe04bb12b028c992ed7bb063 Mon Sep 17 00:00:00 2001 From: Victor Zverovich Date: Thu, 19 Sep 2019 15:44:45 -0700 Subject: [PATCH] Fix a warning (#1319) and simplify code --- include/fmt/format.h | 40 +++++++++++++++++++--------------------- 1 file changed, 19 insertions(+), 21 deletions(-) diff --git a/include/fmt/format.h b/include/fmt/format.h index 605adb7c..e198233b 100644 --- a/include/fmt/format.h +++ b/include/fmt/format.h @@ -215,8 +215,9 @@ inline Dest bit_cast(const Source& source) { // Returns the largest possible value for type T. Same as // std::numeric_limits::max() but shorter and not affected by the max macro. -template -constexpr T max_value() { return (std::numeric_limits::max)(); } +template constexpr T max_value() { + return (std::numeric_limits::max)(); +} // An approximation of iterator_t for pre-C++20 systems. template @@ -2083,13 +2084,12 @@ template class specs_checker : public Handler { numeric_specs_checker checker_; }; -template