Skip to content

Instantly share code, notes, and snippets.

@iveney
Forked from anonymous/gist:935681
Created April 21, 2011 23:07

Revisions

  1. iveney renamed this gist Apr 21, 2011. 1 changed file with 0 additions and 0 deletions.
    File renamed without changes.
  2. iveney revised this gist Apr 21, 2011. No changes.
  3. iveney renamed this gist Apr 21, 2011. 1 changed file with 0 additions and 0 deletions.
    File renamed without changes.
  4. iveney revised this gist Apr 21, 2011. 1 changed file with 6 additions and 0 deletions.
    6 changes: 6 additions & 0 deletions gistfile1.cpp
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,6 @@
    /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
  5. @invalid-email-address Anonymous created this gist Apr 21, 2011.
    6 changes: 6 additions & 0 deletions gistfile1
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,6 @@
    /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