Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Special Interest Groups
  3. C++ Gurus
  4. Boost Subgraph Copy Constructor not working with Qt 5.0.2 and MinGW
Forum Update on Monday, May 27th 2025

Boost Subgraph Copy Constructor not working with Qt 5.0.2 and MinGW

Scheduled Pinned Locked Moved C++ Gurus
1 Posts 1 Posters 803 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    mayur_narkhede
    wrote on last edited by
    #1

    I was using Qt 4.8 and minGW compiler with boost 1.46.0 for my project but now i have moved to Qt 5.0.2 and MinGW compiler with Boost 1.55.0, But the copy constructor for subgraph is not working well. It is not adding vertices to subgraph (Shows 0 items in vertex list if performed debug).

    @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;@

    I am taking input into gMainGraph and I need to copy it to m_gMainGraph

    @SubGraph* m_gMainGraph;
    m_gMainGraph = new SubGraph(gMainGraph);@

    Subgraphs are getting created but the vertices and edges within subgraphs are not getting created and are getting added only to the top most parent graph. Here in above code gMainGraph is not getting deep copied to m_gMainGraph.
    Any help would be appreciated,
    Thank You

    1 Reply Last reply
    0

    • Login

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Get Qt Extensions
    • Unsolved