boost::transitive_closure() 和“错误:没有匹配的函数可用于调用“vertices(const std::vector...””

发布于 2024-12-28 21:25:03 字数 452 浏览 5 评论 0 原文

我在 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 不会改变这种情况。

有人以前遇到过这个问题并且知道如何解决它吗?

I'm using GCC 4.5.0 with boost 1.48.0 on a Linux machine.

While compiling a source file that uses the boost::transitive_closure() function from boost::graph I'm encountering the same problem as in http://boost.2283326.n4.nabble.com/Problem-in-using-Transitive-closure-on-Linux-td2573042.html.
However in my case, including boost/graph/vector_as_graph.hpp before any other Boost header file doesn't change the situation.

Have someone encountered this before and know how to get around it?.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

寂寞美少年 2025-01-04 21:25:03

对于遇到与我相同问题的任何人:
感谢 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
把它放进你的树里。”

To anybody that encounter the same problem as I did:
Thanks to Jeremiah Willcock I got this helpfull reply on the boost-users mailing list (https://groups.google.com/forum/#!topic/boost-list/DIfni1Mdd5E):

"Please see if r76868 in the trunk fixes this problem; you can just
download
https://svn.boost.org/svn/boost/trunk/boost/graph/vector_as_graph.hpp and
put it into your tree."

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文