From 1d756f7407b602f040691ec33616f75d057f66d7 Mon Sep 17 00:00:00 2001 From: Vladislav Shchapov Date: Thu, 11 Nov 2021 18:11:40 +0500 Subject: [PATCH] Change function declaration order --- include/fmt/chrono.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/include/fmt/chrono.h b/include/fmt/chrono.h index b24cef9a4d31..86f2e7ce4c5e 100644 --- a/include/fmt/chrono.h +++ b/include/fmt/chrono.h @@ -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 inline auto do_write_localized(const std::tm& time, const std::locale& loc, char format, char modifier) @@ -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 ::value)> auto write_localized(OutputIt out, const std::tm& time, const std::locale& loc,