Skip to content

Commit

Permalink
Merge pull request #3231 from SergioRAgostinho/bind-filters
Browse files Browse the repository at this point in the history
[filters] Prefer lambdas over binds.
  • Loading branch information
taketwo authored Jul 16, 2019
2 parents 8163917 + 1183460 commit 0864b81
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion filters/include/pcl/filters/boost.h
Original file line number Diff line number Diff line change
Expand Up @@ -52,5 +52,4 @@
#include <boost/dynamic_bitset.hpp>
#include <boost/mpl/size.hpp>
#include <boost/fusion/sequence/intrinsic/at_key.hpp>
#include <boost/bind.hpp>
#include <boost/optional.hpp>
2 changes: 1 addition & 1 deletion filters/include/pcl/filters/model_outlier_removal.h
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ namespace pcl
template <typename T> void
setThresholdFunction (bool (T::*thresh_function) (double), T& instance)
{
setThresholdFunction (boost::bind (thresh_function, boost::ref (instance), _1));
setThresholdFunction ([=, &instance] (double threshold) { return (instance.*thresh_function) (threshold); });
}

protected:
Expand Down

0 comments on commit 0864b81

Please sign in to comment.