2012-01-23 188 views
0

我使用GCC 4.5.0提高1.48.0在Linux機器上。boost :: transitive_closure()and「error:no matching function for call to'vertices(const std :: vector <std :: vector <long unsigned int> ...」

在編譯時使用了boost :: transitive_closure()函數的boost ::圖,我遇到了相同的問題http://boost.2283326.n4.nabble.com/Problem-in-using-Transitive-closure-on-Linux-td2573042.html源文件。 但在我的情況,包括升壓/圖/ vector_as_graph.hpp之前的任何其他升壓頭文件不改變這種狀況。

有人遇到過這一點,並知道如何避開它?.

回答

0

對於任何遇到同樣問題的人,我都會這樣做: 感謝Jeremiah Willcock我在boost-users郵件列表(https://groups.google.com/forum/#!topic/boost-list)上得到了這個有用的回覆/ DIfni1Mdd5E):

「請參閱trunk中的r76868是否修復此問題;你只需要 下載 https://svn.boost.org/svn/boost/trunk/boost/graph/vector_as_graph.hpp和 把它放到你的樹上。「

相關問題