【问题标题】:boost::transitive_closure() and "error: no matching function for call to ‘vertices(const std::vector<std::vector<long unsigned int>..."boost::transitive_closure() 和“错误:没有匹配函数调用‘vertices(const std::vector<std::vector<long unsigned int>...”
【发布时间】:2012-01-23 18:38:44
【问题描述】:

我在 Linux 机器上使用 GCC 4.5.0 和 boost 1.48.0。

在编译使用 boost::graph 中的 boost::transitive_closure() 函数的源文件时,我遇到了与http://boost.2283326.n4.nabble.com/Problem-in-using-Transitive-closure-on-Linux-td2573042.html 中相同的问题。 但是在我的情况下,在任何其他 Boost 头文件之前包含 boost/graph/vector_as_graph.hpp 并不会改变这种情况。

以前有人遇到过这种情况并知道如何解决吗?

【问题讨论】:

    标签: c++ boost boost-graph transitive-closure


    【解决方案1】:

    致与我遇到同样问题的任何人: 感谢 Jeremiah Willcock,我在 boost-users 邮件列表 (https://groups.google.com/forum/#!topic/boost-list/DIfni1Mdd5E) 上得到了这个有用的回复:

    "请查看后备箱中的 r76868 是否可以解决此问题;您可以 下载 https://svn.boost.org/svn/boost/trunk/boost/graph/vector_as_graph.hpp 和 把它放到你的树上。”

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2022-01-19
      • 1970-01-01
      • 2021-05-05
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2012-06-18
      相关资源
      最近更新 更多