Note that there are some explanatory texts on larger screens.

plurals
  1. POSTL transform is not working with BGL
    text
    copied!<p>I'm new to BGL. I'm trying to transform a range of edges to equivalent objects usable in my system. </p> <pre><code>std::vector&lt;my_obj*&gt; return_value(distance(all_edges.first, all_edges.second)); std::transform(all_edges.first, all_edges.second, return_value.begin(), bind(&amp;graph::transform, this, _1)); </code></pre> <p>But I'm getting an error which I couldn't understand:</p> <pre><code>/usr/lib/gcc/x86_64-redhat-linux/3.4.6/../../../../include/c++/3.4.6/bits/stl_algo.h: In function `_OutputIterator std::transform(_InputIterator, _InputIterator, _OutputIterator, _UnaryOperation) [with _InputIterator =boost::detail::adj_list_edge_iterator&lt;std::_List_iterator&lt;void*&gt;, boo st::detail::out_edge_iter&lt;std::_List_iterator&lt;boost::detail::sep_&lt;void*, boost::property&lt;boost:: edge_bundle_t, my_obj*, boost::no_property&gt; &gt; &gt;, void*, boost::detail::edge_desc_impl&lt;boost::dir ected_tag, void*&gt;, ptrdiff_t&gt;, boost::adjacency_list&lt;boost::listS, boost::listS, boost::directed S, my_obj*, my_obj*, boost::no_property, boost::listS&gt; &gt;, _OutputIterator = __gnu_cxx::__normal_ iterator&lt;my_obj**, std::vector&lt;my_obj*, std::allocator&lt;my_obj*&gt; &gt; &gt;, _UnaryOperation = boost::la mbda::lambda_functor&lt;boost::lambda::lambda_functor_base&lt;boost::lambda::action&lt;3, boost::lambda:: function_action&lt;3, boost::lambda::detail::unspecified&gt; &gt;, 2 boost::tuples::tuple&lt;my_obj*(Graph::*const)(boost::detail::edge_desc_impl&lt;boost::directed_tag , void*&gt;), Graph* const, const boost::lambda::lambda_functor&lt;boost::lambda::placeholder&lt;1&gt; &gt;,boo st::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_t ype,boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type&gt; &gt; &gt;]': 3 Isrc/icn_graph.cxx:70: instantiated from here 4 /usr/lib/gcc/x86_64-redhat-linux/3.4.6/../../../../include/c++/3.4.6/bits/stl_algo.h:789: error: no match for call to `(boost::lambda::lambda_functor&lt;boost::lambda::lambda_functor_base&lt;boost:: lambda::action&lt;3, boost::lambda::function_action&lt;3, boost::lambda::detail::unspecified&gt; &gt;, boost ::tuples::tuple&lt;my_obj*(Graph::*const)(boost::detail::edge_desc_impl&lt;boost::directed_tag, void*&gt; ), Graph* const, const boost::lambda::lambda_functor&lt;boost::lambda::placeholder&lt;1&gt; &gt;, boost::tup les::null_type, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type, bo ost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type&gt; &gt; &gt;) (boost::detail: :edge_desc_impl&lt;boost::directed_tag, void*&gt;)' 5 /usr/include/boost/lambda/detail/lambda_functors.hpp:137: note: candidates are: typename T::sig&lt; boost::tuples::null_type&gt;::type boost::lambda::lambda_functor&lt;Base&gt;::operator()() const [with T = boost::lambda::lambda_functor_base&lt;boost::lambda::action&lt;3, boost::lambda::function_action&lt;3, boost::lambda::detail::unspecified&gt; &gt;, boost::tuples::tuple&lt;my_obj*(Graph::*const)(boost::detail ::edge_desc_impl&lt;boost::directed_tag, void*&gt;), Graph* const, const boost::lambda::lambda_functor &lt;boost::lambda::placeholder&lt;1&gt; &gt;, boost::tuples::null_type, boost::tuples::null_type, boost::tup les::null_type, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type, bo ost::tuples::null_type&gt; &gt;] 6 /usr/include/boost/lambda/detail/lambda_functors.hpp:145: note: typename T::sig&lt; boost::tuples::tuple&lt;A&amp;, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null _type, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type, boost::tupl es::null_type, boost::tuples::null_type, boost::tuples::null_type&gt; &gt;::type boost::lambda::lambda _functor&lt;Base&gt;::operator()(A&amp;) const [with A = boost::detail::edge_desc_impl&lt;boost::directed_tag , void*&gt;, T = boost::lambda::lambda_functor_base&lt;boost::lambda::action&lt;3, boost::lambda::functio n_action&lt;3, boost::lambda::detail::unspecified&gt;&gt;, boost::tuples::tuple&lt;my_obj*(Graph::*const)(bo ost::detail::edge_desc_impl&lt;boost::directed_tag, void*&gt;), Graph* const, const boost::lambda::lam bda_functor&lt;boost::lambda::placeholder&lt;1&gt; &gt;,boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type,boost::tuples::null_type, boost::tuples::null _type, boost::tuples::null_type&gt; &gt;] 7 </code></pre> <p>Why do I get this error?</p>
 

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