The following compiles:
```	
std::pair<std::vector<MeshLib::Element*>::const_iterator, std::vector<MeshLib::Element*>::const_iterator> 
const minmax = std::minmax_element(elements.cbegin(), elements.cend(),
	    [](MeshLib::Element const*const a, MeshLib::Element const*const b)
            {
		        return a->getValue() < b->getValue();
	    });
return std::make_pair((*minmax.first)->getValue(), (*minmax.second)->getValue());
```
@endJunction Why did you give the ```mesh``` variable to the lambda? I do not understand this.