Commit 1e051953 authored by Tiago Peixoto's avatar Tiago Peixoto
Browse files

Fix compilation error in action_wrap

parent 051c267f
Pipeline #63 passed with stage
......@@ -377,27 +377,43 @@ struct action_wrap
: _a(a), _g(g), _max_v(max_v), _max_e(max_e) {}
template <class Type>
auto
uncheck(boost::checked_vector_property_map<Type, GraphInterface::vertex_index_map_t> a,
boost::mpl::false_) const
boost::checked_vector_property_map<Type,GraphInterface::vertex_index_map_t>&
uncheck(boost::checked_vector_property_map
<Type,GraphInterface::vertex_index_map_t>& a, boost::mpl::true_) const
{
return a;
}
template <class Type>
boost::unchecked_vector_property_map<Type,GraphInterface::vertex_index_map_t>
uncheck(boost::checked_vector_property_map
<Type,GraphInterface::vertex_index_map_t> a, boost::mpl::false_) const
{
return a.get_unchecked(_max_v);
}
template <class Type>
auto
uncheck(boost::checked_vector_property_map<Type,GraphInterface::edge_index_map_t> a,
boost::mpl::false_) const
boost::checked_vector_property_map<Type,GraphInterface::edge_index_map_t>&
uncheck(boost::checked_vector_property_map
<Type,GraphInterface::edge_index_map_t>& a, boost::mpl::true_) const
{
return a;
}
template <class Type>
boost::unchecked_vector_property_map<Type,GraphInterface::edge_index_map_t>
uncheck(boost::checked_vector_property_map
<Type,GraphInterface::edge_index_map_t> a, boost::mpl::false_) const
{
return a.get_unchecked(_max_e);
}
template <class Type>
auto
scalarS<typename Type::unchecked_t>
uncheck(scalarS<Type> a, boost::mpl::false_) const
{
return scalarS<typename Type::unchecked_t>
(uncheck(a._pmap, boost::mpl::false_()));
return scalarS<typename Type::unchecked_t>(uncheck(a._pmap,
boost::mpl::false_()));
}
//no op
......@@ -405,6 +421,8 @@ struct action_wrap
Type& uncheck(Type& a, DoWrap) const { return a; }
void operator()() const {};
template <class T1> void operator()(T1* a1) const
{ _a(*a1); }
template <class T1, class... Ts>
void operator()(T1* a1, Ts&&... as) const
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment