fix(clock): remove literal operator with reserved name

```
../include/util/date.hpp:34:26: warning: literal operator suffixes not preceded by ‘_’ are reserved for future standardization [-Wliteral-suffix]
   34 | constexpr decltype(auto) operator""d(unsigned long long d) noexcept {
```
This commit is contained in:
Aleksei Bavshin
2024-02-19 21:49:35 -08:00
parent a2deff3689
commit f885baba61
2 changed files with 5 additions and 9 deletions

View File

@ -30,10 +30,6 @@ template <typename T>
inline auto format(const std::locale& loc, const char* spec, const T& arg) {
return date::format(loc, std::regex_replace(spec, std::regex("\\{:L|\\}"), ""), arg);
}
constexpr decltype(auto) operator""d(unsigned long long d) noexcept {
return date::operator""_d(d); // very verbose, but it works
}
#endif
} // namespace date