It turns out that when trying to use Boost.Graph there are several compilation errors. An error is a regression because it is missing when compiling 1.55.0. I dug a little, but I canโt fix it, does anyone know what is wrong here?
Notes: Using the compilation flag -std = C ++ 0x
Code that will generate errors.
#include "boost/graph/adjacency_list.hpp" int main(int argc, char** argv) { using boost::adjacency_list; using boost::vecS; using boost::directedS; typedef adjacency_list<vecS, vecS, directedS, boost::default_color_type> Graph; std::vector< std::pair<int, int> > testVec; auto graph = Graph( begin(testVec), end(testVec), testVec.size()); return 0; }
Errors copied from my IDE
/usr/include/++/4.6/bits/vector.tcc: 319: error: using remote function 'boost :: detail :: stored_edge_property :: self & boost :: detail :: stored_edge_property :: operator = (boost: : detail :: stored_edge_property :: self & &) [with Vertex = long unsigned int, Property = boost :: no_property, boost :: detail :: stored_edge_property :: self = boost :: detail :: stored_edge_property]
... / gain / increase / graph / detail / adjacency_list.hpp: 318: error: 'boost :: detail :: stored_edge_property :: self & boost :: detail :: stored_edge_property :: operator = (boost :: detail :: stored_edge_property :: self & &) [with Vertex = long unsigned int, Property = boost :: no_property, boost :: detail :: stored_edge_property :: self = boost :: detail :: stored_edge_property] is implicitly deleted as the default value will be poorly formed:
... / boost / boost / graph / detail / adjacency_list.hpp: 318: error: base 'Boost :: detail :: stored_edge has no motion assignment operator or trivial copy assignment operator
/usr/include/++/4.6/bits/stl_algobase.h: 546: error: using remote function 'boost :: detail :: stored_edge_property :: self & boost :: detail :: stored_edge_property :: operator = (boost: : detail :: stored_edge_property :: self & &) [with Vertex = long unsigned int, Property = boost :: no_property, boost :: detail :: stored_edge_property :: self = boost :: detail :: stored_edge_property]