Printing a const std::filesystem::path
with fileystem
, fmt/ostream.h
and fmt/std.h
included and later including fmt/ranges.h
in the same compilation unit causes a strange compile error.
Tested with fmt-11.0.0 and gcc-14.2.
#include <filesystem>
#include <fmt/ostream.h>
#include <fmt/std.h>
void f()
{
const auto fn = std::filesystem::path{};
fmt::print("{}", fn);
}
#include <fmt/ranges.h>
https://godbolt.org/z/G5TPbz7o9
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