Move detail::null to chrono where it is used

This commit is contained in:
Victor Zverovich 2021-05-21 09:16:45 -07:00
parent c5c968cb22
commit 00149c0b6a
2 changed files with 1 additions and 2 deletions

View File

@ -283,6 +283,7 @@ To safe_duration_cast(std::chrono::duration<FromRep, FromPeriod> from,
#define FMT_NOMACRO
namespace detail {
template <typename T = void> struct null {};
inline null<> localtime_r FMT_NOMACRO(...) { return null<>(); }
inline null<> localtime_s(...) { return null<>(); }
inline null<> gmtime_r(...) { return null<>(); }

View File

@ -1135,8 +1135,6 @@ class utf8_to_utf16 {
std::wstring str() const { return {&buffer_[0], size()}; }
};
template <typename T = void> struct null {};
namespace dragonbox {
// Type-specific information that Dragonbox uses.