templates - Gerbera 未编译,fmt 模板有问题

我收到以下错误构建非洲菊有人可以帮忙吗?谢谢

/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())

谢谢

相似文章

c++ - 将 icu4c(和其他库)添加到 bazel 项目

我有一个通过CMake构建的项目,需要大量手动安装额外的deps。我想将此项目迁移到Bazel并使这些库可自动下载。我找到了Boost的解决方案,但我不明白如何添加通过其他工具构建的icu4c和其他库...

udp - Go : 在 For 循环中取消上下文

我正在尝试在Golang中创建一个UDP服务器来监听端口,例如。1234.我有一个客户端向这个服务器发送启动/停止消息。收到消息“start”后,服务器将开始向该客户端发送随机数据,在停止时,服务器将...

随机推荐

最新文章