Skip to content

Instantly share code, notes, and snippets.

@iveney
Forked from anonymous/gist:935681
Created April 21, 2011 23:07
Show Gist options
  • Save iveney/935682 to your computer and use it in GitHub Desktop.
Save iveney/935682 to your computer and use it in GitHub Desktop.
Compilation error message
/usr/local/include/boost/graph/random.hpp: In function ‘void boost::detail::randomize_property(G&, RandomGenerator&, Property, boost::edge_property_tag) [with Property = boost::edge_bundle_t, G = boost::adjacency_list<boost::setS, boost::vecS, boost::undirectedS, boost::no_property, EdgeProperty, boost::no_property, boost::listS>, RandomGenerator = boost::random::linear_congruential<int, 48271, 0, 2147483647, 399268537>]’:
/usr/local/include/boost/graph/random.hpp:255: instantiated from ‘void boost::randomize_property(G&, RandomGenerator&) [with Property = boost::edge_bundle_t, G = Graph, RandomGenerator = boost::minstd_rand]’
random_graph.cpp:34: instantiated from here
/usr/local/include/boost/graph/random.hpp:247: error: no match for ‘operator=’ in ‘pm. boost::adj_list_edge_property_map<Directed, Value, Ref, Vertex, Property, Tag>::operator[] [with Directed = boost::undirected_tag, Value = EdgeProperty, Ref = EdgeProperty&, Vertex = long unsigned int, Property = boost::property<boost::edge_bundle_t, EdgeProperty, boost::no_property>, Tag = boost::edge_bundle_t](((boost::iterator_facade<boost::detail::undirected_edge_iter<std::_List_iterator<boost::list_edge<long unsigned int, boost::property<boost::edge_bundle_t, EdgeProperty, boost::no_property> > >, boost::detail::edge_desc_impl<boost::undirected_tag, long unsigned int>, long int>, boost::detail::edge_desc_impl<boost::undirected_tag, long unsigned int>, boost::bidirectional_traversal_tag, boost::detail::edge_desc_impl<boost::undirected_tag, long unsigned int>, long int>*)(& ei))->boost::iterator_facade<I, V, TC, R, D>::operator* [with Derived = boost::detail::undirected_edge_iter<std::_List_iterator<boost::list_edge<long unsigned int, boost::property<boost::edge_bundle_t, EdgeProperty, boost::no_property> > >, boost::detail::edge_desc_impl<boost::undirected_tag, long unsigned int>, long int>, Value = boost::detail::edge_desc_impl<boost::undirected_tag, long unsigned int>, CategoryOrTraversal = boost::bidirectional_traversal_tag, Reference = boost::detail::edge_desc_impl<boost::undirected_tag, long unsigned int>, Difference = long int]()) = ((boost::random::linear_congruential<int, 48271, 0, 2147483647, 399268537>*)rg)->boost::random::linear_congruential<IntType, a, c, m, val>::operator() [with IntType = int, IntType a = 48271, IntType c = 0, IntType m = 2147483647, IntType val = 399268537]()’
random_graph.cpp:11: note: candidates are: EdgeProperty& EdgeProperty::operator=(const EdgeProperty&)
make: *** [random_graph] Error 1
/usr/local/include/boost/graph/random.hpp: In function ‘void boost::detail::randomize_property(G&, RandomGenerator&, Property, boost::edge_property_tag) [with Property = boost::edge_bundle_t, G = boost::adjacency_list<boost::setS, boost::vecS, boost::undirectedS, boost::no_property, EdgeProperty, boost::no_property, boost::listS>, RandomGenerator = boost::random::linear_congruential<int, 48271, 0, 2147483647, 399268537>]’:
/usr/local/include/boost/graph/random.hpp:255: instantiated from ‘void boost::randomize_property(G&, RandomGenerator&) [with Property = boost::edge_bundle_t, G = Graph, RandomGenerator = boost::minstd_rand]’
random_graph.cpp:34: instantiated from here
/usr/local/include/boost/graph/random.hpp:247: error: no match for ‘operator=’ in ‘pm. boost::adj_list_edge_property_map<Directed, Value, Ref, Vertex, Property, Tag>::operator[] [with Directed = boost::undirected_tag, Value = EdgeProperty, Ref = EdgeProperty&, Vertex = long unsigned int, Property = boost::property<boost::edge_bundle_t, EdgeProperty, boost::no_property>, Tag = boost::edge_bundle_t](((boost::iterator_facade<boost::detail::undirected_edge_iter<std::_List_iterator<boost::list_edge<long unsigned int, boost::property<boost::edge_bundle_t, EdgeProperty, boost::no_property> > >, boost::detail::edge_desc_impl<boost::undirected_tag, long unsigned int>, long int>, boost::detail::edge_desc_impl<boost::undirected_tag, long unsigned int>, boost::bidirectional_traversal_tag, boost::detail::edge_desc_impl<boost::undirected_tag, long unsigned int>, long int>*)(& ei))->boost::iterator_facade<I, V, TC, R, D>::operator* [with Derived = boost::detail::undirected_edge_iter<std::_List_iterator<boost::list_edge<long unsigned int, boost::property<boost::edge_bundle_t, EdgeProperty, boost::no_property> > >, boost::detail::edge_desc_impl<boost::undirected_tag, long unsigned int>, long int>, Value = boost::detail::edge_desc_impl<boost::undirected_tag, long unsigned int>, CategoryOrTraversal = boost::bidirectional_traversal_tag, Reference = boost::detail::edge_desc_impl<boost::undirected_tag, long unsigned int>, Difference = long int]()) = ((boost::random::linear_congruential<int, 48271, 0, 2147483647, 399268537>*)rg)->boost::random::linear_congruential<IntType, a, c, m, val>::operator() [with IntType = int, IntType a = 48271, IntType c = 0, IntType m = 2147483647, IntType val = 399268537]()’
random_graph.cpp:11: note: candidates are: EdgeProperty& EdgeProperty::operator=(const EdgeProperty&)
make: *** [random_graph] Error 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment