Closed matgat closed 2 years ago
Hi there. That's not a lot of context to go on. Looks like maybe LLVM is having trouble parsing your code. Are you able to run clang-format on your code outside of unformat?
I think the newer versions of {fmt}
added compile time checks and are a little strict about conversions.
I solved the compilation error specifying on top of cl_config.cpp
the proper formatters:
template<> struct fmt::formatter<std::filesystem::path>: formatter<std::string_view>
{
template<typename FormatContext>
auto format(const std::filesystem::path& path, FormatContext& ctx)
{
return formatter<std::string_view>::format(path.string(), ctx);
}
};
template<> struct fmt::formatter<boost::program_options::options_description> : ostream_formatter {};
Problem from both types
boost::program_options::options_description
andstd::filesystem::path