Skip to content

Commit

Permalink
let the compiler deduce the return type of operator()
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexander Voigt authored and Alexander Voigt committed Oct 14, 2016
1 parent e7b19ad commit 1d5cbbf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/two_scale_solver.cpp
Expand Up @@ -248,7 +248,7 @@ Two_scale_model* RGFlow<Two_scale>::get_model(double scale) const

auto it = std::lower_bound(sorted_sliders.begin(), sorted_sliders.end(),
scale,
[](const std::shared_ptr<Slider>& s, double scale) -> bool
[](const std::shared_ptr<Slider>& s, double scale)
{ return s->get_scale() < scale; });

if (it == sorted_sliders.end())
Expand Down Expand Up @@ -295,7 +295,7 @@ std::vector<std::shared_ptr<RGFlow<Two_scale>::Slider> > RGFlow<Two_scale>::sort
std::vector<std::shared_ptr<Slider> > sorted_sliders(sliders);

std::sort(sorted_sliders.begin(), sorted_sliders.end(),
[](const std::shared_ptr<Slider>& s1, const std::shared_ptr<Slider>& s2) -> bool
[](const std::shared_ptr<Slider>& s1, const std::shared_ptr<Slider>& s2)
{ return s1->get_scale() < s2->get_scale(); });

return sorted_sliders;
Expand Down

0 comments on commit 1d5cbbf

Please sign in to comment.