pass component class by ref (not value) in edge-based graph factory

This commit is contained in:
Dennis Luxen 2014-12-30 11:44:11 +01:00
parent 00bc394bdb
commit d741b624be

View File

@ -512,7 +512,7 @@ void EdgeBasedGraphFactory::GenerateEdgeExpandedNodes()
const unsigned size_of_component = std::min(component_explorer.get_component_size(u),
component_explorer.get_component_size(v));
const unsigned id_of_smaller_component = [u,v,component_explorer] {
const unsigned id_of_smaller_component = [u,v,&component_explorer] {
if (component_explorer.get_component_size(u) < component_explorer.get_component_size(v))
{
return component_explorer.get_component_id(u);