mirror of https://github.com/CGAL/cgal
Fix implementation getter
This commit is contained in:
parent
c4597c74a1
commit
522a8b2e49
|
|
@ -539,7 +539,7 @@ double alpha_expansion_graphcut (const InputGraph& input_graph,
|
||||||
typedef typename GetInitializedVertexIndexMap<InputGraph, NamedParameters>::type VertexIndexMap;
|
typedef typename GetInitializedVertexIndexMap<InputGraph, NamedParameters>::type VertexIndexMap;
|
||||||
VertexIndexMap vertex_index_map = CGAL::get_initialized_vertex_index_map(input_graph, np);
|
VertexIndexMap vertex_index_map = CGAL::get_initialized_vertex_index_map(input_graph, np);
|
||||||
|
|
||||||
typedef typename GetImplementationTag<NamedParameters, Alpha_expansion_boost_adjacency_list_tag>::type Alpha_expansion;
|
typedef typename GetImplementationTag<NamedParameters>::type Alpha_expansion;
|
||||||
typedef typename Alpha_expansion::Vertex_descriptor Vertex_descriptor;
|
typedef typename Alpha_expansion::Vertex_descriptor Vertex_descriptor;
|
||||||
|
|
||||||
Alpha_expansion alpha_expansion;
|
Alpha_expansion alpha_expansion;
|
||||||
|
|
|
||||||
|
|
@ -551,14 +551,14 @@ CGAL_DEF_GET_INITIALIZED_INDEX_MAP(face, typename boost::graph_traits<Graph>::fa
|
||||||
> ::type type;
|
> ::type type;
|
||||||
};
|
};
|
||||||
|
|
||||||
template<typename NamedParameters, typename DefaultImplementation>
|
template<typename NamedParameters>
|
||||||
class GetImplementationTag
|
class GetImplementationTag
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
typedef typename internal_np::Lookup_named_param_def <
|
typedef typename internal_np::Lookup_named_param_def <
|
||||||
internal_np::implementation_tag_t,
|
internal_np::implementation_tag_t,
|
||||||
NamedParameters,
|
NamedParameters,
|
||||||
DefaultImplementation
|
Alpha_expansion_boost_adjacency_list_tag
|
||||||
>::type type;
|
>::type type;
|
||||||
};
|
};
|
||||||
} //namespace CGAL
|
} //namespace CGAL
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue