A format_as
definition that returns a std::views::filter_view
, like so:
auto format_as(CodecMask m) { return CodecMask::k_codecs | std::views::filter([&](auto c) { return m.has(c); }); }
does not compile:
CodecMask m; m.add(Codec::H264); fmt::println("{}", format_as(m)); // valid fmt::pritnln("{}", m); // invalidStack Overflow
I posted this to stack overflow originally, expecting some mistake of my own. People there suggested that this may be a bug with fmt
itself, hence this issue. The explanation given there may prove to be of value.
I expected the most recent commit (274ba26) may have helped, as it appears to be related to this type of issue. It is worth noting the error message changes when tested against 10.1.1
and trunk
in godbolt, but both still do fail.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4