We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
In the template method:
template <typename Char, typename Duration> struct formatter<std::chrono::time_point<std::chrono::system_clock, Duration>, Char> : formatter<std::tm, Char> {.....
if (epoch.count() < (Duration::min() + second).count()) FMT_THROW(format_error("duration is too small"));
MSVC (and probably others) will fail to compile because often the stupid min/max macros are defined.
Simple fix is to put parentheses around Duration::min, like so: if (epoch.count() < ( ( Duration::min ) () + second).count())
The text was updated successfully, but these errors were encountered:
Fix for issue fmtlib#3325
47782af
Signed-off-by: Vladislav Shchapov <[email protected]>
Fix for issue #3325 (#3326)
73b7cee
Successfully merging a pull request may close this issue.
In the template method:
template <typename Char, typename Duration>
struct formatter<std::chrono::time_point<std::chrono::system_clock, Duration>,
Char> : formatter<std::tm, Char> {.....
if (epoch.count() < (Duration::min() + second).count())
FMT_THROW(format_error("duration is too small"));
MSVC (and probably others) will fail to compile because often the stupid min/max macros are defined.
Simple fix is to put parentheses around Duration::min, like so:
if (epoch.count() < ( ( Duration::min ) () + second).count())
The text was updated successfully, but these errors were encountered: