You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@WBurzynski, thanks for reporting! This seems to be related to #503. Initially, the fmtlib did not require the format() member function to be const, and this was how they implemented their own formatters. However, during the standardization process, this member function became const, and fmtlib updated the support in the next releases. mp-units stayed behind.
I actually started to work on this issue during the weekend, and hopefully, it will be fixed soon.
Some time ago there was this issue in fmt: fmtlib/fmt#2754 where const qualifiers were added to some functions. I suspect that either somewhere in fmt another const is missing or in auto format(const quantity& q, FormatContext& ctx)const quantity is too restrictive.
Not sure if It's this library bug or fmt, but trying to print vector of quantity results in compile time error.
Problem reproduced in compiler explorer:
https://godbolt.org/z/7v5jjh9Gs
Problematic code:
The text was updated successfully, but these errors were encountered: