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 11, 2021
1 parent 1c4d4cb commit 1d756f7
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_localized(const std::tm& time, const std::locale& loc,
char format, char modifier)
Expand All @@ -310,11 +315,6 @@ auto write_localized(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_localized(OutputIt out, const std::tm& time, const std::locale& loc,
Expand Down

0 comments on commit 1d756f7

Please sign in to comment.