I knew it would likely be something really simple that I was missing. Thank you very much, mbozzi!
FYI, I actually changed line 48 to
auto format(const T& range, std::format_context& ctx) const
Now the workaround works the same as the {fmt} library, const container or not.
Ah, the curse and bane of being a self-taught C++ hobbyist. *Sigh* So much I know I don't know.
Oh, I earlier commented out the first two lines in the workaround when I was originally getting the const issues. Well,
that didn't work to correct the const problem. Obviously.
1 2
|
// #include <version>
// import std;
| |
That way if you don't want to use the omnibus
import std;
it will work with importing individual C++ stdlib modules or including headers.
I think I will submit this const workaround change back to the authors' github.