In Visual studio 2019 the line

fmt::arg("d", event->getChronoTimeStamp()),


causes the compile time error:

error C2338: Cannot format an argument. To make type T formattable provide
a formatter<T> specialization: https://fmt.dev/latest/api.html#udt


It seems to need a formatter  specialization for
std::chrono::steady_clock::time_point.

The branch build OK with the above line commented out.

On Sat, Nov 26, 2022 at 2:13 AM Robert Middleton <rmiddle...@apache.org>
wrote:

> I've been working on LOGCXX-514(using fmt as an alternative layout to
> the PatternLayout) and I've got a working implementation on Linux.
> However, the Windows build currently fails with some sort of symbol or
> linking error.  Since I'm not all that familiar with Windows, would
> somebody with more experience on the Windows side be able to take a
> look at it?
>
> I suspect that this could also be something to do with the wchar on
> Windows, but it is not clear to me if that is the case or not.
>
> -Robert Middleton
>

Reply via email to