durations of floating point type or smaller than long long
cause "conditional expression is constant" on MSVC
#2854
Labels
long long
cause "conditional expression is constant" on MSVC
#2854
/W4 is required. Seems to happen in any version of {fmt}, cannot reproduce in GCC or Clang
They appear to be similar but unrelated warnings.
Here is a minimal repro:
https://compiler-explorer.com/z/Yve79WaTf
Warning stems from this line:
fmt/include/fmt/chrono.h
Lines 246 to 260 in d141cdb
and this line:
fmt/include/fmt/chrono.h
Lines 82 to 87 in d141cdb
The text was updated successfully, but these errors were encountered: