Boost C++ Libraries: Ticket #9549: [graph][BGL][PBGL] Dynamic_properties class does not allow distributed property_maps https://svn.boost.org/trac10/ticket/9549 <p> I am working with parallel graphs and distributed property maps. I found a problem compiling the code when I intended to add a distributed property map to the dynamic_property variable. The error was a casting problem: error: inicialización inválida de una referencia que no es constante de tipo ‘boost::default_property_traits&lt;boost::parallel::distributed_property_map&lt;boost::graph::distributed::mpi_process_group, boost::detail::parallel::global_descriptor_property_map&lt;long unsigned int&gt;, boost::vec_adj_list_vertex_property_map&lt;boost::adjacency_list&lt;boost::vecS, boost::vecS, boost::directedS, boost::property&lt;boost::vertex_in_edges_t, std::list&lt;boost::detail::parallel::stored_in_edge&lt;boost::detail::edge_desc_impl&lt;boost::directed_tag, long unsigned int&gt; &gt;, std::allocator&lt;boost::detail::parallel::stored_in_edge&lt;boost::detail::edge_desc_impl&lt;boost::directed_tag, long unsigned int&gt; &gt; &gt; &gt;, <a class="missing wiki">VertexProperties</a>&gt;, boost::property&lt;boost::edge_target_processor_id_t, short int, EdgeProperties&gt;, boost::no_property, boost::listS&gt;, boost::adjacency_list&lt;boost::vecS, boost::vecS, boost::directedS, boost::property&lt;boost::vertex_in_edges_t, std::list&lt;boost::detail::parallel::stored_in_edge&lt;boost::detail::edge_desc_impl&lt;boost::directed_tag, long unsigned int&gt; &gt;, std::allocator&lt;boost::detail::parallel::stored_in_edge&lt;boost::detail::edge_desc_impl&lt;boost::directed_tag, long unsigned int&gt; &gt; &gt; &gt;, <a class="missing wiki">VertexProperties</a>&gt;, boost::property&lt;boost::edge_target_processor_id_t, short int, EdgeProperties&gt;, boost::no_property, boost::listS&gt;*, double, double&amp;, double VertexProperties::*&gt; &gt; &gt;::reference {aka double&amp;}’ desde un r-valor de tipo ‘boost::parallel::distributed_property_map&lt;boost::graph::distributed::mpi_process_group, boost::detail::parallel::global_descriptor_property_map&lt;long unsigned int&gt;, boost::vec_adj_list_vertex_property_map&lt;boost::adjacency_list&lt;boost::vecS, boost::vecS, boost::directedS, boost::property&lt;boost::vertex_in_edges_t, std::list&lt;boost::detail::parallel::stored_in_edge&lt;boost::detail::edge_desc_impl&lt;boost::directed_tag, long unsigned int&gt; &gt;, std::allocator&lt;boost::detail::parallel::stored_in_edge&lt;boost::detail::edge_desc_impl&lt;boost::directed_tag, long unsigned int&gt; &gt; &gt; &gt;, <a class="missing wiki">VertexProperties</a>&gt;, boost::property&lt;boost::edge_target_processor_id_t, short int, EdgeProperties&gt;, boost::no_property, boost::listS&gt;, boost::adjacency_list&lt;boost::vecS, boost::vecS, boost::directedS, boost::property&lt;boost::vertex_in_edges_t, std::list&lt;boost::detail::parallel::stored_in_edge&lt;boost::detail::edge_desc_impl&lt;boost::directed_tag, long unsigned int&gt; &gt;, std::allocator&lt;boost::detail::parallel::stored_in_edge&lt;boost::detail::edge_desc_impl&lt;boost::directed_tag, long unsigned int&gt; &gt; &gt; &gt;, <a class="missing wiki">VertexProperties</a>&gt;, boost::property&lt;boost::edge_target_processor_id_t, short int, EdgeProperties&gt;, boost::no_property, boost::listS&gt;*, double, double&amp;, double VertexProperties::*&gt; &gt;::value_type {aka double}’ </p> <p> I also want to propose a patch to solve this problem. </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/9549 Trac 1.4.3 anonymous Tue, 07 Jan 2014 11:49:11 GMT attachment set https://svn.boost.org/trac10/ticket/9549 https://svn.boost.org/trac10/ticket/9549 <ul> <li><strong>attachment</strong> → <span class="trac-field-new">dynamic_properties.patch</span> </li> </ul> Ticket Borja Miñano <bminyano@…> Tue, 07 Jan 2014 11:55:14 GMT cc set https://svn.boost.org/trac10/ticket/9549#comment:1 https://svn.boost.org/trac10/ticket/9549#comment:1 <ul> <li><strong>cc</strong> <span class="trac-author">bminyano@…</span> added </li> </ul> <p> Sorry for the ugly description, I cannot modify it now. </p> Ticket