我收到以下错误构建非洲菊有人可以帮忙吗?谢谢
/sources/gerbera/gerbera-1.11.0/src/database/sql_database.cc:417:43: required from here
/usr/include/fmt/format.h:2826:36: error: no matching function for call to ‘fmt::v8::formatter<SQLIdentifier>::format(const SQLIdentifier&, fmt::v8::basic_format_context<fmt::v8::appender, char>&)’
2826 | out = value_formatter_.format(map(*it), ctx);
| ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~
In file included from /sources/gerbera/gerbera-1.11.0/src/database/sql_database.h:42,
from /sources/gerbera/gerbera-1.11.0/src/database/sql_database.cc:32:
/sources/gerbera/gerbera-1.11.0/src/database/sql_format.h:45:10: note: candidate: ‘template<class FormatContext> decltype (ctx.out()) fmt::v8::formatter<SQLIdentifier>::format(SQLIdentifier&, FormatContext&)’
45 | auto format(SQLIdentifier& tn, FormatContext& ctx) -> decltype(ctx.out())
| ^~~~~~
回答1
看起来 sql_formate.h 的第 45 行是一个简短的 const 语句:
自动格式(const SQLIdentifier& tn,FormatContext& ctx)-> decltype(ctx.out())
谢谢