Skip to content

Commit

Permalink
Change function declaration order
Browse files Browse the repository at this point in the history
  • Loading branch information
phprus committed Nov 12, 2021
1 parent 6ee9334 commit e32ba3c
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions include/fmt/chrono.h
Original file line number Diff line number Diff line change
Expand Up @@ -289,6 +289,11 @@ inline null<> localtime_s(...) { return null<>(); }
inline null<> gmtime_r(...) { return null<>(); }
inline null<> gmtime_s(...) { return null<>(); }

inline const std::locale& get_classic_locale() {
static const auto& locale = std::locale::classic();
return locale;
}

template <typename Char>
inline auto do_write(const std::tm& time, const std::locale& loc, char format,
char modifier) -> std::basic_string<Char> {
Expand All @@ -309,11 +314,6 @@ auto write(OutputIt out, const std::tm& time, const std::locale& loc,
return std::copy(str.begin(), str.end(), out);
}

inline const std::locale& get_classic_locale() {
static const auto& locale = std::locale::classic();
return locale;
}

template <typename Char, typename OutputIt,
FMT_ENABLE_IF(std::is_same<Char, char>::value)>
auto write(OutputIt out, const std::tm& time, const std::locale& loc,
Expand Down

0 comments on commit e32ba3c

Please sign in to comment.