0
我正在使用Qt 4.8和minGW編譯器,其boost 1.46.0爲我的項目,但現在我已經轉移到Qt 5.0.2和MinGW編譯器與Boost 1.55.0 ,但是子圖的拷貝構造函數工作不正常。它不會爲頂點添加頂點(如果執行調試,則在頂點列表中顯示0個項目)。Boost Subgraph Copy構造函數不能與Qt 5.0.2和MinGW工作
typedef boost::adjacency_list< boost::listS,
boost::vecS,
boost::bidirectionalS,
boost::property<boost::vertex_index_t, int ,
property<vertex_position_t, point, VertexProperties> > ,
boost::property<boost::edge_index_t,int , EdgeProperties>,
boost::property<graph_custom_prop_t,GraphProperties> >
Graph;
typedef boost::subgraph<Graph> SubGraph;
我正在投入gMainGraph,我需要把它複製到m_gMainGraph
SubGraph* m_gMainGraph;
m_gMainGraph = new SubGraph(gMainGraph);
越來越創建
子圖,但沒有得到創建子圖內的頂點和邊緣,越來越只增加了最頂級的父圖。 在上面的代碼中,gMainGraph沒有被深度複製到m_gMainGraph中。