【问题标题】:accumulators don't compile累加器不编译
【发布时间】:2010-06-03 12:32:33
【问题描述】:

大家好

我正在使用升压蓄能器。

这 2 行用于在 LInux 中与当前版本的 boost 一起正常工作。

accumulator_set > > acc_cov; accumulator_set> acc_var;

当我搬到安装了 boost v1.40 的 Sun 机器上时 我有这个构建错误

“/opt/boost/boost/accumulators/framework/depends_on.hpp”,第 276 行: 错误: 无法在构造函数中初始化。 “/opt/boost/boost/fusion/container/list/cons.hpp”,第 85 行:其中:While 实例化“boost::accumulators::detail::accumulator_wrapper::accumulator_wrapper(const boost::accumulators::detail::accumulator_wrapper&)”。 “/opt/boost/boost/fusion/container/list/cons.hpp”,第 85 行:其中: 从非模板代码实例化。 1 个错误

您知道如何解决这些错误以及为什么会出现此问题吗?

谢谢 自动对焦

【问题讨论】:

    标签: c++ boost accumulator


    【解决方案1】:

    您是否在两台机器上使用相同版本的 Boost?

    此外,Sun 和 x86 机器完全不同,因此您也可能会遇到问题。

    【讨论】:

    • 不,他们有不同的版本。你知道如何解决这个问题吗?
    猜你喜欢
    • 2021-06-25
    • 1970-01-01
    • 2019-07-20
    • 2019-01-07
    • 2016-09-30
    • 2019-08-07
    • 2021-12-10
    • 2023-03-03
    • 1970-01-01
    相关资源
    最近更新 更多