Relative Content

Tag Archive for c++fmtspdlog

Call fmt::streamed if needed

I have a wrapper on top of spdlog, and after upgrading the spdlog and fmt versions, I have a bunch of errors because some of my types doesn’t provide a formatter. Instead of adding fmt::streamed where I call spdlog with my types, I am trying to add a template function that calls fmt::streamed if there isnt a formatter, and just returns the original value otherwise.