In file included from
Bear/source/citnames/source/semantic/Semantic.cc:23:
In file included from include/fmt/std.h:19:
include/fmt/format.h:4197:30: error: no matching member function for call to 'format'
4197 | out = value_formatter_.format(*it, ctx);
| ~~~~~~~~~~~~~~~~~^~~~~~
include/fmt/core.h:1306:22: note: in instantiation of function template specialization 'fmt::formatter<fmt::join_view<__gnu_cxx::__normal_iterator<const std::filesystem::path *, std::vector<std::filesystem::path>>, __gnu_cxx::__normal_iterator<const std::filesystem::path *, std::vector<std::filesystem::path>>>>::format<fmt::basic_format_context<fmt::appender, char>>' requested here
1306 | ctx.advance_to(f.format(*static_cast<qualified_type*>(arg), ctx));
| ^
include/fmt/core.h:1289:21: note: in instantiation of function template specialization 'fmt::detail::value<fmt::basic_format_context<fmt::appender, char>>::format_custom_arg<fmt::join_view<__gnu_cxx::__normal_iterator<const std::filesystem::path *, std::vector<std::filesystem::path>>, __gnu_cxx::__normal_iterator<const std::filesystem::path *, std::vector<std::filesystem::path>>>, fmt::formatter<fmt::join_view<__gnu_cxx::__normal_iterator<const std::filesystem::path *, std::vector<std::filesystem::path>>, __gnu_cxx::__normal_iterator<const std::filesystem::path *, std::vector<std::filesystem::path>>>>>' requested here
1289 | custom.format = format_custom_arg<
| ^
Bear/source/citnames/source/semantic/Semantic.cc:96:38: note: in instantiation of function template specialization 'fmt::format<fmt::join_view<__gnu_cxx::__normal_iterator<const std::filesystem::path *, std::vector<std::filesystem::path>>, __gnu_cxx::__normal_iterator<const std::filesystem::path *, std::vector<std::filesystem::path>>>>' requested here
96 | << ", sources: " << fmt::format("[{}]", fmt::join(sources.begin(), sources.end(), ", "))
| ^
include/fmt/core.h:2709:22: note: candidate function template not viable: no known conversion from 'const std::filesystem::path' to 'const fmt::basic_string_view<char>' for 1st argument
2709 | FMT_CONSTEXPR auto format(const T& val, FormatContext& ctx) const
| ^
In file included from
Bear/source/citnames/source/semantic/Semantic.cc:23:
In file included from include/fmt/std.h:19:
include/fmt/format.h:4202:32: error: no matching member function for call to 'format'
4202 | out = value_formatter_.format(*it, ctx);
| ~~~~~~~~~~~~~~~~~^~~~~~
include/fmt/core.h:2709:22: note: candidate function template not viable: no known conversion from 'const std::filesystem::path' to 'const fmt::basic_string_view<char>' for 1st argument
2709 | FMT_CONSTEXPR auto format(const T& val, FormatContext& ctx) const
| ^
2 errors generated.
To Reproduce
Compile against latest fmt
Expected behavior
Should build cleanly.
Environment:
OS name: Linux
OS version: Ubuntu 22.04 (Pop-Os)
OS architecture: x86_64
Bear version: Latest commit
Bear install method: source
Additional Context
I didn't open a PR, because I don't really know if this is a suitable fix, but the changes I made in the following diff allowed compilation, and the test suite was at least successful.
Describe the bug
To Reproduce Compile against latest fmt
Expected behavior Should build cleanly.
Environment:
Linux
Ubuntu 22.04 (Pop-Os)
x86_64
Latest commit
source
Additional Context I didn't open a PR, because I don't really know if this is a suitable fix, but the changes I made in the following diff allowed compilation, and the test suite was at least successful.