Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>Again, my apologies for not providing more information.<br> It seemed to me that the compiler was not able to deduce the dependant type there. I encountered this issue some times before when working with templates.<br> I will provide the fix here in case somebody might encounter similar issues.</p> <p>The FilteredGraph uses an instance of Graph (basically an adjacency_list with internal custom properties) as its input. The Graph-class has two template parameters, one for the properties of the vertices and one for the properties of the edges.<br> As a little sidenote, using bundled properties (not supported by older version of boost graph library and also not by some compilers), I think, this problem could be circumvented as you would not need an extra function returning a value of a(possibly) unknown type. Because the Graph-object passed to the FilteredGraph needs to be specified for some particular types of vertex/edge properties, this information can actually be extracted.<br> I achieved this via:</p> <pre><code>/// Type of the internal properties of the edges typedef typename property_traits&lt; typename property_map&lt;FilteredGraphContainer, vertex_properties_t&gt;::type &gt;::value_type VProps; /// Type of the internal properties of the edges typedef typename property_traits&lt; typename property_map&lt;FilteredGraphContainer, edge_properties_t&gt;::type &gt;::value_type EProps; </code></pre> <p>and then defining:</p> <pre><code>VProps&amp; properties(const Vertex&amp; v) { typename property_map&lt;FilteredGraphContainer, vertex_properties_t&gt;::type param = get(vertex_properties, graph_); return (param[v]); } </code></pre> <p>Thanks again for your interest in this question and I am sorry not having provided more information.</p> <p>Best regards.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload