boost::transitive_closure() 和“错误:没有匹配的函数可用于调用“vertices(const std::vector...””
我在 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 不会改变这种情况。
有人以前遇到过这个问题并且知道如何解决它吗?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(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 和
把它放进你的树里。”
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."